org.apache.tools.ant.taskdefs
Class Tar.TarFileSet
- Tar
- Cloneable, SelectorContainer
public static class Tar.TarFileSet
This is a FileSet with the option to specify permissions
and other attributes.
int | getDirMode()
|
String[] | getFiles(Project p) - Get a list of files and directories specified in the fileset.
|
String | getFullpath()
|
int | getGid()
|
String | getGroup()
|
int | getMode()
|
String | getPrefix()
|
boolean | getPreserveLeadingSlashes()
|
int | getUid()
|
String | getUserName()
|
void | setDirMode(String octalString) - A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0755
|
void | setFullpath(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(String groupName) - The groupname for the tar entry; optional, default=""
This is not the same as the GID.
|
void | setMode(String octalString) - A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0644
|
void | setPrefix(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(String userName) - The username for the tar entry
This is not the same as the UID.
|
add , addAnd , addContains , addContainsRegexp , addCustom , addDate , addDepend , addDepth , addDifferent , addFilename , addMajority , addModified , addNone , addNot , addOr , addPresent , addSelector , addSize , addType , appendSelector , clone , createExclude , createExcludesFile , createInclude , createIncludesFile , createPatternSet , getDataTypeName , getDefaultexcludes , getDir , getDirectoryScanner , getRef , getSelectors , hasPatterns , hasSelectors , isFollowSymlinks , selectorCount , selectorElements , setCaseSensitive , setDefaultexcludes , setDir , setExcludes , setExcludesfile , setFile , setFollowSymlinks , setIncludes , setIncludesfile , setRefid , setupDirectoryScanner , toString |
checkAttributesAllowed , checkChildrenAllowed , circularReference , dieOnCircularReference , getCheckedRef , getDescription , getRefid , isChecked , isReference , noChildrenAllowed , setChecked , setDescription , setRefid , tooManyAttributes |
TarFileSet
public TarFileSet()
Creates a new TarFileSet
instance.
TarFileSet
public TarFileSet(FileSet fileset)
Creates a new TarFileSet
instance.
Using a fileset as a constructor argument.
fileset
- a FileSet
value
getDirMode
public int getDirMode()
- the current directory mode
getFiles
public String[] getFiles(Project p)
Get a list of files and directories specified in the fileset.
- a list of file and directory names, relative to
the baseDir for the project.
getFullpath
public String getFullpath()
- the path to use for a single file fileset.
getGid
public int getGid()
getGroup
public String getGroup()
getMode
public int getMode()
getPrefix
public String getPrefix()
- the path prefix for the files in the fileset.
getPreserveLeadingSlashes
public boolean getPreserveLeadingSlashes()
- the leading slashes flag.
getUid
public int getUid()
- the uid for the tar entry
getUserName
public String getUserName()
- the user name for the tar entry
setDirMode
public void setDirMode(String octalString)
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0755
octalString
- a 3 digit octal string.
setFullpath
public void setFullpath(String fullpath)
If the fullpath attribute is set, the file in the fileset
is written with that path in the archive. The prefix attribute,
if specified, is ignored. It is an error to have more than one file specified in
such a fileset.
fullpath
- the path to use for the file in a fileset.
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.
setMode
public void setMode(String octalString)
A 3 digit octal string, specify the user, group and
other modes in the standard Unix fashion;
optional, default=0644
octalString
- a 3 digit octal string.
setPrefix
public void setPrefix(String prefix)
If the prefix attribute is set, all files in the fileset
are prefixed with that path in the archive.
optional.
prefix
- the path prefix.
setPreserveLeadingSlashes
public void setPreserveLeadingSlashes(boolean b)
Flag to indicates whether leading `/'s should
be preserved in the file names.
Optional, default is false
.
b
- the leading slashes flag.
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.
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.