org.apache.tools.ant.taskdefs

Class Tar.TarFileSet

public static class Tar.TarFileSet extends TarFileSet

This is a FileSet with the option to specify permissions and other attributes.
Constructor Summary
TarFileSet(FileSet fileset)
Creates a new TarFileSet instance.
TarFileSet()
Creates a new TarFileSet instance.
Method Summary
String[]getFiles(Project p)
Get a list of files and directories specified in the fileset.
intgetMode()
booleangetPreserveLeadingSlashes()
voidsetMode(String octalString)
A 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0644
voidsetPreserveLeadingSlashes(boolean b)
Flag to indicates whether leading `/'s should be preserved in the file names.

Constructor Detail

TarFileSet

public TarFileSet(FileSet fileset)
Creates a new TarFileSet instance. Using a fileset as a constructor argument.

Parameters: fileset a FileSet value

TarFileSet

public TarFileSet()
Creates a new TarFileSet instance.

Method Detail

getFiles

public String[] getFiles(Project p)
Get a list of files and directories specified in the fileset.

Parameters: p the current project.

Returns: a list of file and directory names, relative to the baseDir for the project.

getMode

public int getMode()

Returns: the current mode.

getPreserveLeadingSlashes

public boolean getPreserveLeadingSlashes()

Returns: the leading slashes flag.

setMode

public void setMode(String octalString)
A 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0644

Parameters: octalString a 3 digit octal string.

setPreserveLeadingSlashes

public void setPreserveLeadingSlashes(boolean b)
Flag to indicates whether leading `/'s should be preserved in the file names. Optional, default is false.

Parameters: b the leading slashes flag.