Package org.fedoraproject.xmvn.config
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 TypeMethodDescriptionvoid
Add an alias.void
Method addFile.void
addVersion
(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.void
removeAlias
(Artifact artifact) Remove an alias.void
removeFile
(String string) Method removeFile.void
removeVersion
(String string) Method removeVersion.void
setAliases
(List<Artifact> aliases) Set alternative identifiers of artifacts.void
setArtifactGlob
(Artifact artifactGlob) Set pattern specifying one or more Maven artifacts.void
Set files holding the artifact.void
setMatched
(Boolean matched) Set whether any reactor artifact matches artifact glob pattern or this rule.void
setOptional
(Boolean optional) Set whether this rule is optional.void
setTargetPackage
(String targetPackage) Set name of binary package into which artifacts are assigned.void
setTargetRepository
(String targetRepository) Set iD of repository into which artifacts are installed.void
setVersions
(List<String> versions) Set compatibility versions of the artifact.
-
Constructor Details
-
PackagingRule
public PackagingRule()
-
-
Method Details
-
addFile
Method addFile.- Parameters:
string
- a string object.
-
addVersion
Method addVersion.- Parameters:
string
- a string object.
-
clone
Method clone. -
getAliases
Method getAliases.- Returns:
- List
-
getArtifactGlob
Get pattern specifying one or more Maven artifacts.- Returns:
- Artifact
-
getFiles
Method getFiles.- Returns:
- List
-
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
Method getVersions.- Returns:
- List
-
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
Method removeFile.- Parameters:
string
- a string object.
-
removeVersion
Method removeVersion.- Parameters:
string
- a string object.
-
setAliases
Set alternative identifiers of artifacts.- Parameters:
aliases
- a aliases object.
-
setArtifactGlob
Set pattern specifying one or more Maven artifacts.- Parameters:
artifactGlob
- a artifactGlob object.
-
setFiles
Set files holding the artifact.- Parameters:
files
- a files object.
-
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
Set compatibility versions of the artifact.- Parameters:
versions
- a versions object.
-
addAlias
Add an alias.- Parameters:
artifact
- alias to be added
-
removeAlias
Remove an alias.- Parameters:
artifact
- alias to be removed
-