public class Mapping extends Object
| Constructor and Description |
|---|
Mapping() |
| Modifier and Type | Method and Description |
|---|---|
ArtifactMap |
getArtifact()
Retrieve the artifact specification.
|
String |
getAttrString(String defaultFileMode,
String defaultGrp,
String defaultUsr)
Assemble the RPM SPEC file attributes for a mapping.
|
String |
getConfiguration()
Retrieves the configuration value.
|
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<Source> |
getSources()
Retrieve the list of source file specifications.
|
String |
getUsername()
Retrieve the UNIX user name to own the installed files.
|
boolean |
isDirectoryIncluded()
Returns if the
getDirectory() should be used for the attribute string (if and only if sources make up everything that gets copied to the
directory).By default, this returns true. |
boolean |
isDirOnly()
Return directory-only status.
|
boolean |
isDocumentation()
Retrieve the documentation status.
|
boolean |
isRecurseDirectories()
Indicates if sub-directories contained in the
getSources() should be explicitly listed in %files
. |
void |
setArtifact(ArtifactMap am)
Set the artifact specification.
|
void |
setConfiguration(String cfg)
Set the configuration status.
|
void |
setDependency(Dependency am)
Set the dependency specification.
|
void |
setDirectory(String dir)
Set the destination during package installation.
|
void |
setDirectoryIncluded(boolean directoryIncluded)
Sets if the
getDirectory() should be used for the attribute string (if and only if sources make up everything that gets copied to the
directory).By default, this is true. |
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 |
setRecurseDirectories(boolean recurseDirectories)
Indicates if sub-directories contained in the
getSources() should be explicitly listed in %files
. |
void |
setSources(List<Source> srclist)
Set the list of source file specifications.
|
void |
setUsername(String uname)
Set the UNIX user name to own the installed files.
|
String |
toString() |
public String getDirectory()
public void setDirectory(String dir)
dir - The new destination during package installation.public boolean isDirectoryIncluded()
getDirectory() should be used for the attribute string (if and only if sources make up everything that gets copied to the
directory).true.getDirectory() should be used for the attribute string.public void setDirectoryIncluded(boolean directoryIncluded)
getDirectory() should be used for the attribute string (if and only if sources make up everything that gets copied to the
directory).true.directoryIncluded - The directoryIncluded to set.public String getConfiguration()
#isConfiguration().
However, modifications to the %config declaration (such as noreplace) are allowed.public void setConfiguration(String cfg)
true if the file(s) in this mapping are configuration
files. Any value other than true or false will be considered a modifier of the
%config declaration in the spec file.cfg - The new configuration value.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)
getSources() should be explicitly listed in %files
.grpname - The new UNIX group name to own the installed files.public List<Source> getSources()
public void setSources(List<Source> 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 final boolean isRecurseDirectories()
getSources() should be explicitly listed in %files
. This includes listing the getDestination(), if isDirectoryIncluded() is true.recurseDirectories.public final void setRecurseDirectories(boolean recurseDirectories)
getSources() should be explicitly listed in %files
. This includes listing the getDestination(), if isDirectoryIncluded() is true.recurseDirectories - The recurseDirectories to set.public String getAttrString(String defaultFileMode, String defaultGrp, String defaultUsr)
defaultFileMode - Default file mode to use if not set for this mapping.defaultGrp - Default group to use if not set for this mapping.defaultUsr - Default user to use if not set for this mapping.public String getDestination()
public boolean isDirOnly()
true if no sources were specified in the mappingCopyright © 2005–2014 Codehaus. All rights reserved.