Top Description Fields Constructors Methods
org.apache.tools.ant.types

public Class ZipFileSet

extends ArchiveFileSet
Class Inheritance
Imports
org.apache.tools.ant.BuildException, .Project

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 Summary

Inherited from org.apache.tools.ant.types.ArchiveFileSet:
DEFAULT_DIR_MODEDEFAULT_FILE_MODE

Constructor Summary

AccessConstructor and Description
public
ZipFileSet()

Constructor for ZipFileSet

protected
ZipFileSet(FileSet
the fileset to use
fileset
)

Constructor using a fileset argument.

protected
ZipFileSet(ZipFileSet
the zipfileset to use
fileset
)

Constructor using a zipfileset argument.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the cloned zipFileSet
clone
()

Overrides org.apache.tools.ant.types.ArchiveFileSet.clone.

Return a ZipFileSet that has the same properties as this one.
protected AbstractFileSet

Returns:

the abstract fileset instance
getRef
(Project
the project to use
p
)

Overrides org.apache.tools.ant.types.FileSet.getRef.

A ZipFileset accepts another ZipFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute
protected AbstractFileSet

Returns:

the abstract fileset instance
getRef
()

Overrides org.apache.tools.ant.types.ArchiveFileSet.getRef.

A ZipFileset accepts another ZipFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute
protected ArchiveScanner

Returns:

a new ZipScanner with the same encoding as this one.
newArchiveScanner
()

Implements abstract org.apache.tools.ant.types.ArchiveFileSet.newArchiveScanner.

Return a new archive scanner based on this one.
Inherited from org.apache.tools.ant.types.ArchiveFileSet:
addConfiguredconfigureFileSetdieOnCircularReferencegetDirectoryScannergetDirModegetDirModegetEncodinggetFileModegetFileModegetFullpathgetFullpathgetPrefixgetPrefixgetSrcgetSrchasDirModeBeenSethasFileModeBeenSetintegerSetDirModeintegerSetFileModeisFilesystemOnlyiteratorsetDirsetDirModesetEncodingsetErrorOnMissingArchivesetFileModesetFullpathsetPrefixsetSrcsetSrcResourcesizetoString

Constructor Detail

ZipFileSetback to summary
public ZipFileSet()

Constructor for ZipFileSet

ZipFileSetback to summary
protected ZipFileSet(FileSet fileset)

Constructor using a fileset argument.

Parameters
fileset:FileSet

the fileset to use

ZipFileSetback to summary
protected ZipFileSet(ZipFileSet fileset)

Constructor using a zipfileset argument.

Parameters
fileset:ZipFileSet

the zipfileset to use

Method Detail

cloneback to summary
public Object clone()

Overrides org.apache.tools.ant.types.ArchiveFileSet.clone.

Return a ZipFileSet that has the same properties as this one.

Returns:Object

the cloned zipFileSet

Annotations
@Override
getRefback to summary
protected AbstractFileSet getRef(Project p)

Overrides org.apache.tools.ant.types.FileSet.getRef.

A ZipFileset accepts another ZipFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute

Parameters
p:Project

the project to use

Returns:AbstractFileSet

the abstract fileset instance

Annotations
@Override
getRefback to summary
protected AbstractFileSet getRef()

Overrides org.apache.tools.ant.types.ArchiveFileSet.getRef.

A ZipFileset accepts another ZipFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute

Returns:AbstractFileSet

the abstract fileset instance

Annotations
@Override
newArchiveScannerback to summary
protected ArchiveScanner newArchiveScanner()

Implements abstract org.apache.tools.ant.types.ArchiveFileSet.newArchiveScanner.

Return a new archive scanner based on this one.

Returns:ArchiveScanner

a new ZipScanner with the same encoding as this one.

Annotations
@Override