Package org.apache.tools.ant.types
Class ZipFileSet
- All Implemented Interfaces:
- Cloneable,- Iterable<Resource>,- ResourceCollection,- SelectorContainer
A ZipFileSet is a FileSet with extra attributes useful in the context of
 Zip/Jar tasks.
 A ZipFileSet extends FileSets with the ability to extract a subset of the
 entries of a Zip file for inclusion in another Zip file.  It also includes
 a prefix attribute which is prepended to each entry in the output Zip file.
 Since ant 1.6 ZipFileSet can be defined with an id and referenced in packaging tasks
- 
Field SummaryFields inherited from class org.apache.tools.ant.types.ArchiveFileSetDEFAULT_DIR_MODE, DEFAULT_FILE_MODEFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructorsModifierConstructorDescriptionConstructor for ZipFileSetprotectedZipFileSet(FileSet fileset) Constructor using a fileset argument.protectedZipFileSet(ZipFileSet fileset) Constructor using a zipfileset argument.
- 
Method SummaryModifier and TypeMethodDescriptionclone()Return a ZipFileSet that has the same properties as this one.protected AbstractFileSetgetRef()A ZipFileset accepts another ZipFileSet or a FileSet as reference FileSets are often used by the war task for the lib attributeprotected AbstractFileSetA ZipFileset accepts another ZipFileSet or a FileSet as reference FileSets are often used by the war task for the lib attributeprotected ArchiveScannerReturn a new archive scanner based on this one.Methods inherited from class org.apache.tools.ant.types.ArchiveFileSetaddConfigured, configureFileSet, dieOnCircularReference, getDirectoryScanner, getDirMode, getDirMode, getEncoding, getFileMode, getFileMode, getFullpath, getFullpath, getPrefix, getPrefix, getSrc, getSrc, hasDirModeBeenSet, hasFileModeBeenSet, integerSetDirMode, integerSetFileMode, isFilesystemOnly, iterator, setDir, setDirMode, setEncoding, setErrorOnMissingArchive, setFileMode, setFullpath, setPrefix, setSrc, setSrcResource, size, toStringMethods inherited from class org.apache.tools.ant.types.AbstractFileSetadd, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addExecutable, addFilename, addMajority, addModified, addNone, addNot, addOr, addOwnedBy, addPosixGroup, addPosixPermissions, addPresent, addReadable, addSelector, addSize, addSymlink, addType, addWritable, appendExcludes, appendIncludes, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDefaultexcludes, getDir, getDir, getDirectoryScanner, getErrorOnMissingDir, getMaxLevelsOfSymlinks, getSelectors, hasPatterns, hasSelectors, isCaseSensitive, isFollowSymlinks, mergeExcludes, mergeIncludes, mergePatterns, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setErrorOnMissingDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setMaxLevelsOfSymlinks, setRefid, setupDirectoryScanner, setupDirectoryScannerMethods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesMethods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.apache.tools.ant.types.ResourceCollectionisEmpty, stream
- 
Constructor Details- 
ZipFileSetpublic ZipFileSet()Constructor for ZipFileSet
- 
ZipFileSetConstructor using a fileset argument.- Parameters:
- fileset- the fileset to use
 
- 
ZipFileSetConstructor using a zipfileset argument.- Parameters:
- fileset- the zipfileset to use
 
 
- 
- 
Method Details- 
newArchiveScannerReturn a new archive scanner based on this one.- Specified by:
- newArchiveScannerin class- ArchiveFileSet
- Returns:
- a new ZipScanner with the same encoding as this one.
 
- 
getRefA ZipFileset accepts another ZipFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute
- 
getRefA ZipFileset accepts another ZipFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute- Overrides:
- getRefin class- ArchiveFileSet
- Returns:
- the abstract fileset instance
 
- 
cloneReturn a ZipFileSet that has the same properties as this one.- Overrides:
- clonein class- ArchiveFileSet
- Returns:
- the cloned zipFileSet
 
 
-