|
||||||||||
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.taskdefs.Tar.TarFileSet
This is a FileSet with the option to specify permissions and other attributes.
Field Summary |
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 | |
Tar.TarFileSet()
Creates a new TarFileSet instance. |
|
Tar.TarFileSet(FileSet fileset)
Creates a new TarFileSet instance. |
Method Summary | |
int |
getDirMode()
|
java.lang.String[] |
getFiles(Project p)
Get a list of files and directories specified in the fileset. |
java.lang.String |
getFullpath()
|
int |
getGid()
|
java.lang.String |
getGroup()
|
int |
getMode()
|
java.lang.String |
getPrefix()
|
boolean |
getPreserveLeadingSlashes()
|
int |
getUid()
|
java.lang.String |
getUserName()
|
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 |
setFullpath(java.lang.String fullpath)
If the fullpath attribute is set, the file in the fileset is written with that path in the archive. |
void |
setGid(int gid)
The GID for the tar entry; optional, default="0" This is not the same as the group name. |
void |
setGroup(java.lang.String groupName)
The groupname for the tar entry; optional, default="" This is not the same as the GID. |
void |
setMode(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 |
setPrefix(java.lang.String prefix)
If the prefix attribute is set, all files in the fileset are prefixed with that path in the archive. |
void |
setPreserveLeadingSlashes(boolean b)
Flag to indicates whether leading `/'s should be preserved in the file names. |
void |
setUid(int uid)
The uid for the tar entry This is not the same as the User name. |
void |
setUserName(java.lang.String userName)
The username for the tar entry This is not the same as the UID. |
Methods inherited from class org.apache.tools.ant.types.FileSet |
clone |
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, getDirectoryScanner, getRef, getSelectors, hasPatterns, hasSelectors, isFollowSymlinks, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setDir, 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 |
Constructor Detail |
public Tar.TarFileSet(FileSet fileset)
TarFileSet
instance.
Using a fileset as a constructor argument.
fileset
- a FileSet
valuepublic Tar.TarFileSet()
TarFileSet
instance.
Method Detail |
public java.lang.String[] getFiles(Project p)
p
- the current project.
public void setMode(java.lang.String octalString)
octalString
- a 3 digit octal string.public int getMode()
public void setDirMode(java.lang.String octalString)
octalString
- a 3 digit octal string.public int getDirMode()
public void setUserName(java.lang.String userName)
userName
- the user name for the tar entry.public java.lang.String getUserName()
public void setUid(int uid)
uid
- the id of the user for the tar entry.public int getUid()
public void setGroup(java.lang.String groupName)
groupName
- the group name string.public java.lang.String getGroup()
public void setGid(int gid)
gid
- the group id.public int getGid()
public void setPrefix(java.lang.String prefix)
prefix
- the path prefix.public java.lang.String getPrefix()
public void setFullpath(java.lang.String fullpath)
fullpath
- the path to use for the file in a fileset.public java.lang.String getFullpath()
public void setPreserveLeadingSlashes(boolean b)
false
.
b
- the leading slashes flag.public boolean getPreserveLeadingSlashes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |