abstractpublic class ArchiveFileSet extends FileSet(Code)
A ArchiveFileSet is a FileSet with extra attributes useful in the
context of archiving tasks.
It includes a prefix attribute which is prepended to each entry in
the output archive file as well as a fullpath ttribute. It also
supports Unix file permissions for files and directories.
since: Ant 1.7
toString() for file based zipfilesets, return the same as for normal filesets
else just return the path of the zip
for file based archivefilesets, included files as a listof semicolon-separated filenames.
Set the source Archive file for the archivefileset. Prevents both
"dir" and "src" from being specified.
Parameters: a - the archive as a single element Resource collection.
A ArchiveFileset accepts another ArchiveFileSet or a FileSet as reference
FileSets are often used by the war task for the lib attribute
Parameters: zfs - the project to use
Return the DirectoryScanner associated with this FileSet.
If the ArchiveFileSet defines a source Archive file, then a ArchiveScanner
is returned instead.
Parameters: p - the project to use a directory scanner
Indicate whether this ResourceCollection is composed entirely of
Resources accessible via local filesystem conventions. If true,
all Resources returned from this ResourceCollection should be
instances of FileResource.
whether this is a filesystem-only resource collection. since: Ant 1.7
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0755
Parameters: octalString - a String value
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0644
Parameters: octalString - a String value
Set the full pathname of the single entry in this fileset.
Prevents both prefix and fullpath from being specified
Parameters: fullpath - the full pathname of the single entry in this fileset.
Prepend this prefix to the path for each archive entry.
Prevents both prefix and fullpath from being specified
Parameters: prefix - The prefix to prepend to entries in the archive file.
Set the source Archive file for the archivefileset. Prevents both
"dir" and "src" from being specified.
Parameters: srcFile - The archive from which to extract entries.
Set the source Archive file for the archivefileset. Prevents both
"dir" and "src" from being specified.
Parameters: src - The archive from which to extract entries.
for file based zipfilesets, return the same as for normal filesets
else just return the path of the zip
for file based archivefilesets, included files as a listof semicolon-separated filenames. else just the name of the zip.
Methods inherited from org.apache.tools.ant.types.FileSet