public final class RpmPackageRule extends BaseOwnedObject
| Constructor and Description |
|---|
RpmPackageRule() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
addFiles(org.redline_rpm.Builder builder)
Add all files found by the rule to the package
|
String |
getBase()
Get base path, relative to the buildPath
|
String |
getDestination()
Get file destination
|
String |
getDestinationOrDefault()
Get the file destination, or the default setting if not set
|
org.redline_rpm.payload.Directive |
getDirectives()
Get file directives
|
List<String> |
getExcludes()
Get file exclusion rules
|
List<String> |
getIncludes()
Get file inclusion rules
|
org.apache.maven.plugin.logging.Log |
getLog()
Get the Maven logger
|
RpmPackage |
getPackage()
Get associated RPM package
|
String |
getScanPath()
Get path used for scanning for files to be included by the rule
|
String[] |
listFiles()
List all files found by the rule to the package
|
void |
setBase(String base)
Set base path, relative to the buildPath
|
void |
setDestination(String destination)
Set file destination
|
void |
setDirectives(List<String> directives)
Set file directives
|
void |
setExcludes(List<String> excludes)
Set file exclusion rules
|
void |
setIncludes(List<String> includes)
Set file inclusion rules
|
void |
setPackage(RpmPackage rpmPackage)
Set associated RPM package
|
getGroupOrDefault, getModeOrDefault, getOwnerOrDefault, setFileMode, setGroup, setOwnerpublic void setPackage(RpmPackage rpmPackage)
rpmPackage - RPM packagepublic RpmPackage getPackage()
getPackage in class BaseOwnedObjectpublic void setBase(String base)
base - Base pathpublic String getBase()
public void setDestination(String destination)
destination - File destinationpublic String getDestination()
public String getDestinationOrDefault()
public void setIncludes(List<String> includes)
includes - File inclusion rulespublic List<String> getIncludes()
public void setExcludes(List<String> excludes)
excludes - File exclusion rulespublic List<String> getExcludes()
public void setDirectives(List<String> directives) throws InvalidRpmPackageRuleDirectiveException
directives - File directivesInvalidRpmPackageRuleDirectiveExceptionpublic org.redline_rpm.payload.Directive getDirectives()
public String getScanPath() throws InvalidPathException
InvalidPathExceptionpublic org.apache.maven.plugin.logging.Log getLog()
public String[] listFiles() throws AbstractRpmException
AbstractRpmExceptionpublic String[] addFiles(org.redline_rpm.Builder builder) throws IOException, NoSuchAlgorithmException, AbstractRpmException
builder - RPM builderIOExceptionNoSuchAlgorithmExceptionAbstractRpmExceptionCopyright © 2017. All rights reserved.