org.apache.tools.ant.types
Class TarFileSet
- Cloneable, ResourceCollection, SelectorContainer
A TarFileSet is a FileSet with extra attributes useful in the context of
Tar/Jar tasks.
A TarFileSet extends FileSets with the ability to extract a subset of the
entries of a Tar file for inclusion in another Tar file. It also includes
a prefix attribute which is prepended to each entry in the output Tar file.
addConfigured , clone , configureFileSet , getDirMode , getDirMode , getDirectoryScanner , getFileMode , getFileMode , getFullpath , getFullpath , getPrefix , getPrefix , getSrc , getSrc , hasDirModeBeenSet , hasFileModeBeenSet , integerSetDirMode , integerSetFileMode , isFilesystemOnly , iterator , newArchiveScanner , setDir , setDirMode , setFileMode , setFullpath , setPrefix , setSrc , setSrcResource , size , toString |
add , addAnd , addContains , addContainsRegexp , addCustom , addDate , addDepend , addDepth , addDifferent , addFilename , addMajority , addModified , addNone , addNot , addOr , addPresent , addSelector , addSize , addType , appendExcludes , appendIncludes , appendSelector , clone , createExclude , createExcludesFile , createInclude , createIncludesFile , createPatternSet , getDefaultexcludes , getDir , getDir , getDirectoryScanner , getDirectoryScanner , getRef , getSelectors , hasPatterns , hasSelectors , isCaseSensitive , isFollowSymlinks , mergeExcludes , mergeIncludes , mergePatterns , selectorCount , selectorElements , setCaseSensitive , setDefaultexcludes , setDir , setExcludes , setExcludesfile , setFile , setFollowSymlinks , setIncludes , setIncludesfile , setRefid , setupDirectoryScanner , setupDirectoryScanner , toString |
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
TarFileSet
public TarFileSet()
Constructor for TarFileSet
TarFileSet
protected TarFileSet(FileSet fileset)
Constructor using a fileset arguement.
fileset
- the fileset to use
TarFileSet
protected TarFileSet(TarFileSet fileset)
Constructor using a tarfileset arguement.
fileset
- the tarfileset to use
clone
public Object clone()
Return a TarFileSet that has the same properties
as this one.
- clone in interface ArchiveFileSet
configureFileSet
protected void configureFileSet(ArchiveFileSet zfs)
Configure a fileset based on this fileset.
If the fileset is a TarFileSet copy in the tarfileset
specific attributes.
- configureFileSet in interface ArchiveFileSet
zfs
- the archive fileset to configure.
getGid
public int getGid()
getGroup
public String getGroup()
getRef
protected AbstractFileSet getRef(Project p)
A TarFileset accepts another TarFileSet or a FileSet as reference
FileSets are often used by the war task for the lib attribute
- getRef in interface AbstractFileSet
- the abstract fileset instance
getUid
public int getUid()
- the uid for the tar entry
getUserName
public String getUserName()
- the user name for the tar entry
hasGroupBeenSet
public boolean hasGroupBeenSet()
- whether the group name has been explicitly set.
hasGroupIdBeenSet
public boolean hasGroupIdBeenSet()
- whether the group id has been explicitly set.
hasUserIdBeenSet
public boolean hasUserIdBeenSet()
- whether the user id has been explicitly set.
hasUserNameBeenSet
public boolean hasUserNameBeenSet()
- whether the user name has been explicitly set.
setGid
public void setGid(int gid)
The GID for the tar entry; optional, default="0"
This is not the same as the group name.
setGroup
public void setGroup(String groupName)
The groupname for the tar entry; optional, default=""
This is not the same as the GID.
groupName
- the group name string.
setRefid
public void setRefid(Reference r)
throws BuildException
Makes this instance in effect a reference to another instance.
You must not set another attribute or nest elements inside
this element if you make it a reference.
- setRefid in interface AbstractFileSet
r
- the Reference
to use.
setUid
public void setUid(int uid)
The uid for the tar entry
This is not the same as the User name.
uid
- the id of the user for the tar entry.
setUserName
public void setUserName(String userName)
The username for the tar entry
This is not the same as the UID.
userName
- the user name for the tar entry.