Package org.fedoraproject.xmvn.config
Class PackagingRule
- java.lang.Object
-
- org.fedoraproject.xmvn.config.PackagingRule
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
EffectivePackagingRule
public class PackagingRule extends java.lang.Object implements java.io.Serializable, java.lang.CloneableIdentification of Maven Artifact.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Artifact>aliasesField aliases.private ArtifactartifactGlobPattern specifying one or more Maven artifacts.private java.util.List<java.lang.String>filesField files.private java.lang.BooleanmatchedWhether any reactor artifact matches artifact glob pattern or this rule.private java.lang.BooleanoptionalWhether this rule is optional.private java.lang.StringtargetPackageName of binary package into which artifacts are assigned.private java.lang.StringtargetRepositoryID of repository into which artifacts are installed.private java.util.List<java.lang.String>versionsField versions.
-
Constructor Summary
Constructors Constructor Description PackagingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlias(Artifact artifact)Add an alias.voidaddFile(java.lang.String string)Method addFile.voidaddVersion(java.lang.String string)Method addVersion.PackagingRuleclone()Method clone.java.util.List<Artifact>getAliases()Method getAliases.ArtifactgetArtifactGlob()Get pattern specifying one or more Maven artifacts.java.util.List<java.lang.String>getFiles()Method getFiles.java.lang.StringgetTargetPackage()Get name of binary package into which artifacts are assigned.java.lang.StringgetTargetRepository()Get iD of repository into which artifacts are installed.java.util.List<java.lang.String>getVersions()Method getVersions.java.lang.BooleanisMatched()Get whether any reactor artifact matches artifact glob pattern or this rule.java.lang.BooleanisOptional()Get whether this rule is optional.voidremoveAlias(Artifact artifact)Remove an alias.voidremoveFile(java.lang.String string)Method removeFile.voidremoveVersion(java.lang.String string)Method removeVersion.voidsetAliases(java.util.List<Artifact> aliases)Set alternative identifiers of artifacts.voidsetArtifactGlob(Artifact artifactGlob)Set pattern specifying one or more Maven artifacts.voidsetFiles(java.util.List<java.lang.String> files)Set files holding the artifact.voidsetMatched(java.lang.Boolean matched)Set whether any reactor artifact matches artifact glob pattern or this rule.voidsetOptional(java.lang.Boolean optional)Set whether this rule is optional.voidsetTargetPackage(java.lang.String targetPackage)Set name of binary package into which artifacts are assigned.voidsetTargetRepository(java.lang.String targetRepository)Set iD of repository into which artifacts are installed.voidsetVersions(java.util.List<java.lang.String> versions)Set compatibility versions of the artifact.
-
-
-
Field Detail
-
artifactGlob
private Artifact artifactGlob
Pattern specifying one or more Maven artifacts.
-
targetPackage
private java.lang.String targetPackage
Name of binary package into which artifacts are assigned.
-
targetRepository
private java.lang.String targetRepository
ID of repository into which artifacts are installed.
-
files
private java.util.List<java.lang.String> files
Field files.
-
versions
private java.util.List<java.lang.String> versions
Field versions.
-
aliases
private java.util.List<Artifact> aliases
Field aliases.
-
optional
private java.lang.Boolean optional
Whether this rule is optional. Non-optional rules cause uild failure if they are not matched.
-
matched
private java.lang.Boolean matched
Whether any reactor artifact matches artifact glob pattern or this rule. Non-optional rules cause build failure if hey are not matched.
-
-
Method Detail
-
addFile
public void addFile(java.lang.String string)
Method addFile.- Parameters:
string-
-
addVersion
public void addVersion(java.lang.String string)
Method addVersion.- Parameters:
string-
-
clone
public PackagingRule clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- PackagingRule
-
getAliases
public java.util.List<Artifact> getAliases()
Method getAliases.- Returns:
- List
-
getArtifactGlob
public Artifact getArtifactGlob()
Get pattern specifying one or more Maven artifacts.- Returns:
- Artifact
-
getFiles
public java.util.List<java.lang.String> getFiles()
Method getFiles.- Returns:
- List
-
getTargetPackage
public java.lang.String getTargetPackage()
Get name of binary package into which artifacts are assigned.- Returns:
- String
-
getTargetRepository
public java.lang.String getTargetRepository()
Get iD of repository into which artifacts are installed.- Returns:
- String
-
getVersions
public java.util.List<java.lang.String> getVersions()
Method getVersions.- Returns:
- List
-
isMatched
public java.lang.Boolean isMatched()
Get whether any reactor artifact matches artifact glob pattern or this rule. Non-optional rules cause build failure if hey are not matched.- Returns:
- Boolean
-
isOptional
public java.lang.Boolean isOptional()
Get whether this rule is optional. Non-optional rules cause uild failure if they are not matched.- Returns:
- Boolean
-
removeFile
public void removeFile(java.lang.String string)
Method removeFile.- Parameters:
string-
-
removeVersion
public void removeVersion(java.lang.String string)
Method removeVersion.- Parameters:
string-
-
setAliases
public void setAliases(java.util.List<Artifact> aliases)
Set alternative identifiers of artifacts.- Parameters:
aliases-
-
setArtifactGlob
public void setArtifactGlob(Artifact artifactGlob)
Set pattern specifying one or more Maven artifacts.- Parameters:
artifactGlob-
-
setFiles
public void setFiles(java.util.List<java.lang.String> files)
Set files holding the artifact.- Parameters:
files-
-
setMatched
public void setMatched(java.lang.Boolean matched)
Set whether any reactor artifact matches artifact glob pattern or this rule. Non-optional rules cause build failure if hey are not matched.- Parameters:
matched-
-
setOptional
public void setOptional(java.lang.Boolean optional)
Set whether this rule is optional. Non-optional rules cause uild failure if they are not matched.- Parameters:
optional-
-
setTargetPackage
public void setTargetPackage(java.lang.String targetPackage)
Set name of binary package into which artifacts are assigned.- Parameters:
targetPackage-
-
setTargetRepository
public void setTargetRepository(java.lang.String targetRepository)
Set iD of repository into which artifacts are installed.- Parameters:
targetRepository-
-
setVersions
public void setVersions(java.util.List<java.lang.String> versions)
Set compatibility versions of the artifact.- Parameters:
versions-
-
addAlias
public void addAlias(Artifact artifact)
Add an alias.- Parameters:
artifact- alias to be added
-
removeAlias
public void removeAlias(Artifact artifact)
Remove an alias.- Parameters:
artifact- alias to be removed
-
-