org.schmant.task.at4j.tar
Class TarDirectoryWithRules

java.lang.Object
  extended by org.schmant.task.at4j.tar.TarDirectoryWithRules

public class TarDirectoryWithRules
extends Object

This object is used to combine a directory with a list of ArchiveEntrySettingsRule:s. It is used by the TarTask (interpreted by the TarTask.addToTarBuilder(org.at4j.tar.builder.TarStreamBuilder, Object) method).

Since:
0.8
Author:
Karl Gustafsson
See Also:
TarTask
Task_package:
org.at4j

Constructor Summary
TarDirectoryWithRules(Object dir, ArchiveEntrySettingsRule<TarEntrySettings>... rules)
          Create a directory to Tar with several rules.
TarDirectoryWithRules(Object dir, ArchiveEntrySettingsRule<TarEntrySettings> rule)
          Create a directory to Tar with one rule.
 
Method Summary
 Object getDirectory()
           
 ArchiveEntrySettingsRule<TarEntrySettings>[] getRules()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TarDirectoryWithRules

public TarDirectoryWithRules(Object dir,
                             ArchiveEntrySettingsRule<TarEntrySettings> rule)
Create a directory to Tar with one rule.

Parameters:
dir - The directory. This argument will be interpreted as described in TarTask.addToTarBuilder(org.at4j.tar.builder.TarStreamBuilder, Object).
rule - The rule.

TarDirectoryWithRules

public TarDirectoryWithRules(Object dir,
                             ArchiveEntrySettingsRule<TarEntrySettings>... rules)
Create a directory to Tar with several rules.

Parameters:
dir - The directory. This argument will be interpreted as described in TarTask.addToTarBuilder(org.at4j.tar.builder.TarStreamBuilder, Object).
rules - The rules.
Method Detail

getDirectory

public Object getDirectory()

getRules

public ArchiveEntrySettingsRule<TarEntrySettings>[] getRules()