|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.ArchiveFileSet
org.apache.ant.compress.resources.ArFileSet
public class ArFileSet
A ArFileSet is a FileSet with extra attributes useful in the context of Ar/Jar tasks. A ArFileSet extends FileSets with the ability to extract a subset of the entries of a Ar file for inclusion in another Ar file. It also includes a prefix attribute which is prepended to each entry in the output Ar file.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.types.ArchiveFileSet |
---|
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE |
Fields inherited from class org.apache.tools.ant.types.DataType |
---|
checked, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
|
ArFileSet()
Constructor for ArFileSet |
protected |
ArFileSet(ArFileSet fileset)
Constructor using a arfileset arguement. |
protected |
ArFileSet(org.apache.tools.ant.types.FileSet fileset)
Constructor using a fileset arguement. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a ArFileSet that has the same properties as this one. |
protected void |
configureFileSet(org.apache.tools.ant.types.ArchiveFileSet zfs)
Configure a fileset based on this fileset. |
int |
getGid()
|
protected org.apache.tools.ant.types.AbstractFileSet |
getRef(org.apache.tools.ant.Project p)
A ArFileset accepts another ArFileSet or a FileSet as reference FileSets are often used by the war task for the lib attribute |
int |
getUid()
|
boolean |
hasGroupIdBeenSet()
|
boolean |
hasUserIdBeenSet()
|
protected org.apache.tools.ant.types.ArchiveScanner |
newArchiveScanner()
Create a new scanner. |
void |
setGid(int gid)
The GID for the ar entry; optional, default="0" This is not the same as the group name. |
void |
setRefid(org.apache.tools.ant.types.Reference r)
Makes this instance in effect a reference to another instance. |
void |
setUid(int uid)
The uid for the ar entry This is not the same as the User name. |
Methods inherited from class org.apache.tools.ant.types.ArchiveFileSet |
---|
addConfigured, dieOnCircularReference, getCheckedRef, getDirectoryScanner, getDirMode, getDirMode, getFileMode, getFileMode, getFullpath, getFullpath, getPrefix, getPrefix, getSrc, getSrc, hasDirModeBeenSet, hasFileModeBeenSet, integerSetDirMode, integerSetFileMode, isFilesystemOnly, iterator, setDir, setDirMode, setErrorOnMissingArchive, setFileMode, setFullpath, setPrefix, setSrc, setSrcResource, size, toString |
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, addReadable, addSelector, addSize, addType, addWritable, appendExcludes, appendIncludes, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDefaultexcludes, getDir, getDir, getDirectoryScanner, getMaxLevelsOfSymlinks, getSelectors, hasPatterns, hasSelectors, isCaseSensitive, isFollowSymlinks, mergeExcludes, mergeIncludes, mergePatterns, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setErrorOnMissingDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setMaxLevelsOfSymlinks, setupDirectoryScanner, setupDirectoryScanner |
Methods inherited from class org.apache.tools.ant.types.DataType |
---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArFileSet()
protected ArFileSet(org.apache.tools.ant.types.FileSet fileset)
fileset
- the fileset to useprotected ArFileSet(ArFileSet fileset)
fileset
- the arfileset to useMethod Detail |
---|
public void setUid(int uid)
uid
- the id of the user for the ar entry.public int getUid()
public boolean hasUserIdBeenSet()
public void setGid(int gid)
gid
- the group id.public int getGid()
public boolean hasGroupIdBeenSet()
protected org.apache.tools.ant.types.ArchiveScanner newArchiveScanner()
newArchiveScanner
in class org.apache.tools.ant.types.ArchiveFileSet
public void setRefid(org.apache.tools.ant.types.Reference r) throws org.apache.tools.ant.BuildException
You must not set another attribute or nest elements inside this element if you make it a reference.
setRefid
in class org.apache.tools.ant.types.AbstractFileSet
r
- the Reference
to use.
org.apache.tools.ant.BuildException
- on errorprotected org.apache.tools.ant.types.AbstractFileSet getRef(org.apache.tools.ant.Project p)
getRef
in class org.apache.tools.ant.types.AbstractFileSet
p
- the project to use
protected void configureFileSet(org.apache.tools.ant.types.ArchiveFileSet zfs)
configureFileSet
in class org.apache.tools.ant.types.ArchiveFileSet
zfs
- the archive fileset to configure.public java.lang.Object clone()
clone
in class org.apache.tools.ant.types.ArchiveFileSet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |