|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.rpm.Mapping
public class Mapping
A description of a file or directory to be installed. It includes the properties to be assigned and the location(s) where the file(s) can be found for packaging.
Constructor Summary | |
---|---|
Mapping()
|
Method Summary | |
---|---|
ArtifactMap |
getArtifact()
Retrieve the artifact specification. |
String |
getAttrString()
Assemble the RPM SPEC file attributes for a mapping. |
Dependency |
getDependency()
Retrieve the dependency specification. |
String |
getDestination()
Return the destination directory name. |
String |
getDirectory()
Retrieve the destination during package installation. |
String |
getFilemode()
Retrieve the UNIX file permissions. |
String |
getGroupname()
Retrieve the UNIX group name to own the installed files. |
List |
getSources()
Retrieve the list of source file specifications. |
String |
getUsername()
Retrieve the UNIX user name to own the installed files. |
boolean |
isConfiguration()
Retrieve the configuration status. |
boolean |
isDirOnly()
Return directory-only status. |
boolean |
isDocumentation()
Retrieve the documentation status. |
void |
setArtifact(ArtifactMap am)
Set the artifact specification. |
void |
setConfiguration(boolean isCfg)
Set the configuration status. |
void |
setDependency(Dependency am)
Set the dependency specification. |
void |
setDirectory(String dir)
Set the destination during package installation. |
void |
setDocumentation(boolean isDoc)
Set the documentation status. |
void |
setFilemode(String fmode)
Set the UNIX file permissions. |
void |
setGroupname(String grpname)
Set the UNIX group name to own the installed files. |
void |
setSources(List srclist)
Set the list of source file specifications. |
void |
setUsername(String uname)
Set the UNIX user name to own the installed files. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mapping()
Method Detail |
---|
public String getDirectory()
public void setDirectory(String dir)
dir
- The new destination during package installation.public boolean isConfiguration()
true
if
the file(s) in this mapping are configuration files.
public void setConfiguration(boolean isCfg)
true
if
the file(s) in this mapping are configuration files.
isCfg
- The new configuration status.public boolean isDocumentation()
true
if
the file(s) in this mapping are documentation files.
public void setDocumentation(boolean isDoc)
true
if
the file(s) in this mapping are documentation files.
isDoc
- The new documentation status.public String getFilemode()
public void setFilemode(String fmode)
fmode
- The new UNIX file permissions.public String getUsername()
public void setUsername(String uname)
uname
- The new UNIX user name to own the installed files.public String getGroupname()
public void setGroupname(String grpname)
grpname
- The new UNIX group name to own the installed files.public List getSources()
public void setSources(List srclist)
srclist
- The new list of source file specifications.public ArtifactMap getArtifact()
public void setArtifact(ArtifactMap am)
am
- The new artifact specification.public Dependency getDependency()
public void setDependency(Dependency am)
am
- The new dependency specification.public String getAttrString()
public String getDestination()
public boolean isDirOnly()
true
if no sources were specified in the mappingpublic String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |