| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| public static final int | DEFAULT_DIR_MODE
Default value for the dirmode attribute. |
| public static final int | DEFAULT_FILE_MODE
Default value for the filemode attribute. |
| private int | |
| private boolean | |
| private String | |
| private static final String | |
| private static final String | |
| private boolean | |
| private int | |
| private boolean | |
| private String | |
| private boolean | |
| private String | |
| private Resource |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | |
| protected | ArchiveFileSet(ArchiveFileSet
the archivefileset to use fileset)Constructor using a archive fileset argument. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConfigured(ResourceCollection
the archive as a single element Resource collection. a)Set the source Archive file for the archivefileset. |
| private void | |
| public Object | Returns: the cloned archiveFileSetOverrides org. |
| protected void | configureFileSet(ArchiveFileSet
the project to use zfs)A ArchiveFileset accepts another ArchiveFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute |
| protected synchronized void | dieOnCircularReference(Stack<Object>
the stack of references to check. stk, Project the project to use to dereference the references. p)Overrides org. |
| public DirectoryScanner | Returns: a directory scannerthe project to use p)Overrides org. |
| public int | |
| public int | |
| public String | |
| public int | |
| public int | |
| public String | Returns: the full paththe project to use p)Return the full pathname of the single entry in this fileset. |
| public String | Returns: the full pathname.
Deprecated
since 1.7.
Return the full pathname of the single entryZ in this fileset.
|
| public String | |
| public String | Returns: the prefix.
Deprecated
since 1.7.
Return the prefix prepended to entries in the archive file.
|
| protected AbstractFileSet | Returns: the dereferenced object. |
| public File | |
| public File | Returns: the archive in case the archive is a file, null otherwise.Get the archive file from which entries will be extracted. |
| public boolean | Returns: true if it has been setWhether the user has specified the mode explicitly. |
| public boolean | Returns: true if it has been setWhether the user has specified the mode explicitly. |
| public void | integerSetDirMode(int
a mode)int valuespecify the user, group and other modes in the standard Unix fashion; optional, default=0755 We use the strange name so this method doesn't appear in IntrospectionHelpers list of attribute setters. |
| public void | integerSetFileMode(int
a mode)int valuespecify the user, group and other modes in the standard Unix fashion; optional, default=0644 We use the strange name so this method doesn't appear in IntrospectionHelpers list of attribute setters. |
| public boolean | Returns: whether this is a filesystem-only resource collection.Overrides org. Implements org. |
| public Iterator | Returns: Iterator of Resources.Overrides org. Implements java. |
| protected abstract ArchiveScanner | |
| public void | setDir(File
the directory for the fileset dir)Overrides org. |
| public void | setDirMode(String
a octalString)String valueA 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0755 |
| public void | |
| public void | setErrorOnMissingArchive(boolean
true if missing archives cause errors,
false if not. errorOnMissingArchive)Sets whether an error is thrown if an archive does not exist. |
| public void | setFileMode(String
a octalString)String valueA 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0644 |
| public void | setFullpath(String
the full pathname of the single entry in this fileset. fullpath)Set the full pathname of the single entry in this fileset. |
| public void | |
| public void | |
| public void | setSrcResource(Resource
The archive from which to extract entries. src)Set the source Archive file for the archivefileset. |
| public int | Returns: size of the collection as int.Overrides org. Implements org. |
| public String | Returns: for file based archivefilesets, included files as a list of semicolon-separated filenames. else just the name of the zip.Overrides org. |
| BASE_OCTAL | back to summary |
|---|---|
| private static final int BASE_OCTAL | |
| DEFAULT_DIR_MODE | back to summary |
|---|---|
| public static final int DEFAULT_DIR_MODE Default value for the dirmode attribute.
| |
| DEFAULT_FILE_MODE | back to summary |
|---|---|
| public static final int DEFAULT_FILE_MODE Default value for the filemode attribute.
| |
| dirMode | back to summary |
|---|---|
| private int dirMode | |
| dirModeHasBeenSet | back to summary |
|---|---|
| private boolean dirModeHasBeenSet | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| ERROR_DIR_AND_SRC_ATTRIBUTES | back to summary |
|---|---|
| private static final String ERROR_DIR_AND_SRC_ATTRIBUTES | |
| ERROR_PATH_AND_PREFIX | back to summary |
|---|---|
| private static final String ERROR_PATH_AND_PREFIX | |
| errorOnMissingArchive | back to summary |
|---|---|
| private boolean errorOnMissingArchive | |
| fileMode | back to summary |
|---|---|
| private int fileMode | |
| fileModeHasBeenSet | back to summary |
|---|---|
| private boolean fileModeHasBeenSet | |
| fullpath | back to summary |
|---|---|
| private String fullpath | |
| hasDir | back to summary |
|---|---|
| private boolean hasDir | |
| prefix | back to summary |
|---|---|
| private String prefix | |
| src | back to summary |
|---|---|
| private Resource src | |
| ArchiveFileSet | back to summary |
|---|---|
| public ArchiveFileSet() Constructor for ArchiveFileSet | |
| ArchiveFileSet | back to summary |
|---|---|
| protected ArchiveFileSet(FileSet fileset) Constructor using a fileset argument.
| |
| ArchiveFileSet | back to summary |
|---|---|
| protected ArchiveFileSet(ArchiveFileSet fileset) Constructor using a archive fileset argument.
| |
| addConfigured | back to summary |
|---|---|
| public void addConfigured(ResourceCollection a) Set the source Archive file for the archivefileset. Prevents both "dir" and "src" from being specified.
| |
| checkArchiveAttributesAllowed | back to summary |
|---|---|
| private void checkArchiveAttributesAllowed() A check attributes for archiveFileSet. If there is a reference, and it is a ArchiveFileSet, the archive fileset attributes cannot be used. (Note, we can only see if the reference is an archive fileset if the project has been set). | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides org. Return a ArchiveFileSet that has the same properties as this one. | |
| configureFileSet | back to summary |
|---|---|
| protected void configureFileSet(ArchiveFileSet zfs) A ArchiveFileset accepts another ArchiveFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute
| |
| dieOnCircularReference | back to summary |
|---|---|
| protected synchronized void dieOnCircularReference(Stack<Object> stk, Project p) throws BuildException Overrides org. Doc from org. Check to see whether any DataType we hold references to is included in the Stack (which holds all DataType instances that directly or indirectly reference this instance, including this instance itself). If one is included, throw a BuildException created by This implementation is appropriate only for a DataType that cannot hold other DataTypes as children. The general contract of this method is that it shouldn't do
anything if
| |
| getDirectoryScanner | back to summary |
|---|---|
| public DirectoryScanner getDirectoryScanner(Project p) Overrides org. Return the DirectoryScanner associated with this FileSet. If the ArchiveFileSet defines a source Archive file, then an ArchiveScanner is returned instead.
| |
| getDirMode | back to summary |
|---|---|
| public int getDirMode(Project p) Get the dir mode of the archive fileset
| |
| getDirMode | back to summary |
|---|---|
| public int getDirMode()
Deprecated since 1.7.
| |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() Get the encoding used for this ZipFileSet.
| |
| getFileMode | back to summary |
|---|---|
| public int getFileMode(Project p) Get the mode of the archive fileset
| |
| getFileMode | back to summary |
|---|---|
| public int getFileMode()
Deprecated since 1.7.
| |
| getFullpath | back to summary |
|---|---|
| public String getFullpath(Project p) Return the full pathname of the single entry in this fileset. | |
| getFullpath | back to summary |
|---|---|
| public String getFullpath()
Deprecated since 1.7. Return the full pathname of the single entryZ in this fileset.
| |
| getPrefix | back to summary |
|---|---|
| public String getPrefix(Project p) Return the prefix prepended to entries in the archive file. | |
| getPrefix | back to summary |
|---|---|
| public String getPrefix()
Deprecated since 1.7. Return the prefix prepended to entries in the archive file.
| |
| getRef | back to summary |
|---|---|
| protected AbstractFileSet getRef() Hides org. Performs the check for circular references and returns the
referenced object.
This method must be overridden together with
| |
| getSrc | back to summary |
|---|---|
| public File getSrc(Project p) Get the archive from which entries will be extracted. | |
| getSrc | back to summary |
|---|---|
| public File getSrc() Get the archive file from which entries will be extracted.
| |
| hasDirModeBeenSet | back to summary |
|---|---|
| public boolean hasDirModeBeenSet() Whether the user has specified the mode explicitly.
| |
| hasFileModeBeenSet | back to summary |
|---|---|
| public boolean hasFileModeBeenSet() Whether the user has specified the mode explicitly.
| |
| integerSetDirMode | back to summary |
|---|---|
| public void integerSetDirMode(int mode) specify the user, group and other modes in the standard Unix fashion; optional, default=0755 We use the strange name so this method doesn't appear in IntrospectionHelpers list of attribute setters.
| |
| integerSetFileMode | back to summary |
|---|---|
| public void integerSetFileMode(int mode) specify the user, group and other modes in the standard Unix fashion; optional, default=0644 We use the strange name so this method doesn't appear in IntrospectionHelpers list of attribute setters.
| |
| isFilesystemOnly | back to summary |
|---|---|
| public boolean isFilesystemOnly() Overrides org. Implements org. 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.
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides org. Implements java. Fulfill the ResourceCollection contract. | |
| newArchiveScanner | back to summary |
|---|---|
| protected abstract ArchiveScanner newArchiveScanner() Creates a scanner for this type of archive.
| |
| setDir | back to summary |
|---|---|
| public void setDir(File dir) throws BuildException Overrides org. Set the directory for the fileset.
| |
| setDirMode | back to summary |
|---|---|
| public void setDirMode(String octalString) A 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0755
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String enc) Set the encoding used for this ZipFileSet.
| |
| setErrorOnMissingArchive | back to summary |
|---|---|
| public void setErrorOnMissingArchive(boolean errorOnMissingArchive) Sets whether an error is thrown if an archive does not exist.
| |
| setFileMode | back to summary |
|---|---|
| public void setFileMode(String octalString) A 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0644
| |
| setFullpath | back to summary |
|---|---|
| public void setFullpath(String fullpath) Set the full pathname of the single entry in this fileset. Prevents both prefix and fullpath from being specified
| |
| setPrefix | back to summary |
|---|---|
| public void setPrefix(String prefix) Prepend this prefix to the path for each archive entry. Prevents both prefix and fullpath from being specified
| |
| setSrc | back to summary |
|---|---|
| public void setSrc(File srcFile) Set the source Archive file for the archivefileset. Prevents both "dir" and "src" from being specified.
| |
| setSrcResource | back to summary |
|---|---|
| public void setSrcResource(Resource src) Set the source Archive file for the archivefileset. Prevents both "dir" and "src" from being specified.
| |
| size | back to summary |
|---|---|
| public int size() Overrides org. Implements org. Fulfill the ResourceCollection contract.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. For file-based archivefilesets, return the same as for normal filesets; else just return the path of the zip. | |