org.apache.tools.ant.taskdefs
public static class Tar.TarFileSet extends FileSet
Constructor Summary | |
---|---|
TarFileSet(FileSet fileset)
Creates a new TarFileSet instance.
| |
TarFileSet()
Creates a new TarFileSet instance.
|
Method Summary | |
---|---|
int | getDirMode() |
String[] | getFiles(Project p)
Get a list of files and directories specified in the fileset. |
String | getFullpath() |
int | getGid() |
String | getGroup() |
int | getMode() |
String | getPrefix() |
boolean | getPreserveLeadingSlashes() |
int | getUid() |
String | getUserName() |
void | setDirMode(String octalString)
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0755
|
void | setFullpath(String fullpath)
If the fullpath attribute is set, the file in the fileset
is written with that path in the archive. |
void | setGid(int gid)
The GID for the tar entry; optional, default="0"
This is not the same as the group name. |
void | setGroup(String groupName)
The groupname for the tar entry; optional, default=""
This is not the same as the GID. |
void | setMode(String octalString)
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0644 |
void | setPrefix(String prefix)
If the prefix attribute is set, all files in the fileset
are prefixed with that path in the archive.
optional. |
void | setPreserveLeadingSlashes(boolean b)
Flag to indicates whether leading `/'s should
be preserved in the file names.
|
void | setUid(int uid)
The uid for the tar entry
This is not the same as the User name. |
void | setUserName(String userName)
The username for the tar entry
This is not the same as the UID. |
TarFileSet
instance.
Using a fileset as a constructor argument.
Parameters: fileset a FileSet
value
TarFileSet
instance.
Returns: the current directory mode
Since: Ant 1.6
Parameters: p the current project.
Returns: a list of file and directory names, relative to the baseDir for the project.
Returns: the path to use for a single file fileset.
Returns: the group identifier.
Returns: the group name string.
Returns: the current mode.
Returns: the path prefix for the files in the fileset.
Returns: the leading slashes flag.
Returns: the uid for the tar entry
Returns: the user name for the tar entry
Parameters: octalString a 3 digit octal string.
Since: Ant 1.6
Parameters: fullpath the path to use for the file in a fileset.
Parameters: gid the group id.
Parameters: groupName the group name string.
Parameters: octalString a 3 digit octal string.
Parameters: prefix the path prefix.
false
.Parameters: b the leading slashes flag.
Parameters: uid the id of the user for the tar entry.
Parameters: userName the user name for the tar entry.