Class PackagingRule
java.lang.Object
org.fedoraproject.xmvn.config.PackagingRule
- All Implemented Interfaces:
Serializable, Cloneable
Identification of Maven Artifact.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an alias.voidMethod addFile.voidaddVersion(String string) Method addVersion.clone()Method clone.Method getAliases.Get pattern specifying one or more Maven artifacts.getFiles()Method getFiles.Get name of binary package into which artifacts are assigned.Get iD of repository into which artifacts are installed.Method getVersions.Get whether any reactor artifact matches artifact glob pattern or this rule.Get whether this rule is optional.voidremoveAlias(Artifact artifact) Remove an alias.voidremoveFile(String string) Method removeFile.voidremoveVersion(String string) Method removeVersion.voidsetAliases(List<Artifact> aliases) Set alternative identifiers of artifacts.voidsetArtifactGlob(Artifact artifactGlob) Set pattern specifying one or more Maven artifacts.voidSet files holding the artifact.voidsetMatched(Boolean matched) Set whether any reactor artifact matches artifact glob pattern or this rule.voidsetOptional(Boolean optional) Set whether this rule is optional.voidsetTargetPackage(String targetPackage) Set name of binary package into which artifacts are assigned.voidsetTargetRepository(String targetRepository) Set iD of repository into which artifacts are installed.voidsetVersions(List<String> versions) Set compatibility versions of the artifact.
-
Constructor Details
-
PackagingRule
public PackagingRule()
-
-
Method Details
-
addFile
-
addVersion
-
clone
-
getAliases
-
getArtifactGlob
Get pattern specifying one or more Maven artifacts.- Returns:
- Artifact
-
getFiles
-
getTargetPackage
Get name of binary package into which artifacts are assigned.- Returns:
- String
-
getTargetRepository
Get iD of repository into which artifacts are installed.- Returns:
- String
-
getVersions
-
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
Get whether this rule is optional. Non-optional rules cause uild failure if they are not matched.- Returns:
- Boolean
-
removeFile
-
removeVersion
Method removeVersion.- Parameters:
string- a string object.
-
setAliases
-
setArtifactGlob
Set pattern specifying one or more Maven artifacts.- Parameters:
artifactGlob- a artifactGlob object.
-
setFiles
-
setMatched
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- a matched object.
-
setOptional
Set whether this rule is optional. Non-optional rules cause uild failure if they are not matched.- Parameters:
optional- a optional object.
-
setTargetPackage
Set name of binary package into which artifacts are assigned.- Parameters:
targetPackage- a targetPackage object.
-
setTargetRepository
Set iD of repository into which artifacts are installed.- Parameters:
targetRepository- a targetRepository object.
-
setVersions
-
addAlias
-
removeAlias
Remove an alias.- Parameters:
artifact- alias to be removed
-