Package org.codehaus.plexus.archiver.tar
Class TarArchiver.TarOptions
- java.lang.Object
-
- org.codehaus.plexus.archiver.tar.TarArchiver.TarOptions
-
- Enclosing class:
- TarArchiver
public class TarArchiver.TarOptions extends Object
Valid Modes for Compression attribute to Tar Task
-
-
Constructor Summary
Constructors Constructor Description TarOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGid()StringgetGroup()booleangetPreserveLeadingSlashes()intgetUid()StringgetUserName()voidsetGid(int gid)The GID for the tar entry; optional, default="0" This is not the same as the group name.voidsetGroup(String groupName)The groupname for the tar entry; optional, default="" This is not the same as the GID.voidsetPreserveLeadingSlashes(boolean preserveLeadingSlashes)Flag to indicates whether leading `/'s should be preserved in the file names.voidsetUid(int uid)The uid for the tar entry This is not the same as the User name.voidsetUserName(String userName)The username for the tar entry This is not the same as the UID.
-
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
The username for the tar entry This is not the same as the UID.- Parameters:
userName- the user name for the tar entry.
-
getUserName
public String getUserName()
- Returns:
- the user name for the tar entry
-
setUid
public void setUid(int uid)
The uid for the tar entry This is not the same as the User name.- Parameters:
uid- the id of the user for the tar entry.
-
getUid
public int getUid()
- Returns:
- the uid for the tar entry
-
setGroup
public void setGroup(String groupName)
The groupname for the tar entry; optional, default="" This is not the same as the GID.- Parameters:
groupName- the group name string.
-
getGroup
public String getGroup()
- Returns:
- the group name string.
-
setGid
public void setGid(int gid)
The GID for the tar entry; optional, default="0" This is not the same as the group name.- Parameters:
gid- the group id.
-
getGid
public int getGid()
- Returns:
- the group identifier.
-
getPreserveLeadingSlashes
public boolean getPreserveLeadingSlashes()
- Returns:
- the leading slashes flag.
-
setPreserveLeadingSlashes
public void setPreserveLeadingSlashes(boolean preserveLeadingSlashes)
Flag to indicates whether leading `/'s should be preserved in the file names. Optional, default isfalse.- Parameters:
preserveLeadingSlashes- the leading slashes flag.
-
-