|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.types.DataType | +--org.apache.tools.ant.types.AbstractFileSet | +--org.apache.tools.ant.types.FileSet | +--org.apache.tools.ant.types.ZipFileSet
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 | |
static int |
DEFAULT_DIR_MODE
Default value for the dirmode attribute. |
static int |
DEFAULT_FILE_MODE
Default value for the filemode attribute. |
Fields inherited from class org.apache.tools.ant.types.DataType |
checked, description, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
|
ZipFileSet()
|
protected |
ZipFileSet(FileSet fileset)
|
protected |
ZipFileSet(ZipFileSet fileset)
|
Method Summary | |
java.lang.Object |
clone()
Return a ZipFileSet that has the same properties as this one. |
DirectoryScanner |
getDirectoryScanner(Project p)
Return the DirectoryScanner associated with this FileSet. |
int |
getDirMode(Project p)
|
int |
getFileMode(Project p)
|
java.lang.String |
getFullpath(Project p)
Return the full pathname of the single entry in this fileset. |
java.lang.String |
getPrefix(Project p)
Return the prefix prepended to entries in the zip file. |
protected AbstractFileSet |
getRef(Project p)
A ZipFileset accepts another ZipFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute |
java.io.File |
getSrc(Project p)
Get the zip file from which entries will be extracted. |
boolean |
hasDirModeBeenSet()
Whether the user has specified the mode explicitly. |
boolean |
hasFileModeBeenSet()
Whether the user has specified the mode explicitly. |
void |
setDir(java.io.File dir)
Set the directory for the fileset. |
void |
setDirMode(java.lang.String octalString)
A 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0755 |
void |
setFileMode(java.lang.String octalString)
A 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0644 |
void |
setFullpath(java.lang.String fullpath)
Set the full pathname of the single entry in this fileset. |
void |
setPrefix(java.lang.String prefix)
Prepend this prefix to the path for each zip entry. |
void |
setSrc(java.io.File srcFile)
Set the source Zip file for the zipfileset. |
Methods inherited from class org.apache.tools.ant.types.AbstractFileSet |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDataTypeName, getDir, getSelectors, hasPatterns, hasSelectors, isFollowSymlinks, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setRefid, setupDirectoryScanner, toString |
Methods inherited from class org.apache.tools.ant.types.DataType |
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_DIR_MODE
public static final int DEFAULT_FILE_MODE
Constructor Detail |
public ZipFileSet()
protected ZipFileSet(FileSet fileset)
protected ZipFileSet(ZipFileSet fileset)
Method Detail |
public void setDir(java.io.File dir) throws BuildException
setDir
in class AbstractFileSet
BuildException
public void setSrc(java.io.File srcFile)
srcFile
- The zip file from which to extract entries.public java.io.File getSrc(Project p)
public void setPrefix(java.lang.String prefix)
prefix
- The prefix to prepend to entries in the zip file.public java.lang.String getPrefix(Project p)
public void setFullpath(java.lang.String fullpath)
fullpath
- the full pathname of the single entry in this fileset.public java.lang.String getFullpath(Project p)
public DirectoryScanner getDirectoryScanner(Project p)
getDirectoryScanner
in class AbstractFileSet
public void setFileMode(java.lang.String octalString)
public int getFileMode(Project p)
public boolean hasFileModeBeenSet()
public void setDirMode(java.lang.String octalString)
public int getDirMode(Project p)
public boolean hasDirModeBeenSet()
protected AbstractFileSet getRef(Project p)
getRef
in class AbstractFileSet
public java.lang.Object clone()
clone
in class FileSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |