Package org.codehaus.mojo.rpm
Class Dependency
- java.lang.Object
-
- org.codehaus.mojo.rpm.Dependency
-
public class Dependency extends Object
A description of the set of project dependencies to include in the mapping. If no includes or excludes are specified, all dependencies will be included in the mapping.Each include or exclude should be specified in the form: "groupID
:
artifactID[:
version]" Any field can be specified as "*
" which means any value is a match. If version is omitted (it usually is), it is the same as specifying "*
".
-
-
Constructor Summary
Constructors Constructor Description Dependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.maven.artifact.Artifact>
getExcludes()
Retrieve the list of dependencies to exclude.List<org.apache.maven.artifact.Artifact>
getIncludes()
Retrieve the list of dependencies to include.boolean
getStripVersion()
Retrieve the stripVersion propertyvoid
setExcludes(List<String> excls)
Set the list of dependencies to exclude.void
setIncludes(List<String> incls)
Set the list of dependencies to include.void
setStripVersion(boolean stripVersion)
Set the stripVersion propertyString
toString()
-
-
-
Method Detail
-
getIncludes
public List<org.apache.maven.artifact.Artifact> getIncludes()
Retrieve the list of dependencies to include.- Returns:
- The list of dependencies to include.
-
setIncludes
public void setIncludes(List<String> incls) throws org.apache.maven.plugin.MojoExecutionException
Set the list of dependencies to include.- Parameters:
incls
- The new list of dependencies to include.- Throws:
org.apache.maven.plugin.MojoExecutionException
- if the parse fails
-
getExcludes
public List<org.apache.maven.artifact.Artifact> getExcludes()
Retrieve the list of dependencies to exclude.- Returns:
- The list of dependencies to exclude.
-
setExcludes
public void setExcludes(List<String> excls) throws org.apache.maven.plugin.MojoExecutionException
Set the list of dependencies to exclude.- Parameters:
excls
- The new list of dependencies to exclude.- Throws:
org.apache.maven.plugin.MojoExecutionException
- if the parse fails
-
getStripVersion
public boolean getStripVersion()
Retrieve the stripVersion property- Returns:
- The stripVersion property
-
setStripVersion
public void setStripVersion(boolean stripVersion) throws org.apache.maven.plugin.MojoExecutionException
Set the stripVersion property- Parameters:
stripVersion
- the stripVersion property to set- Throws:
org.apache.maven.plugin.MojoExecutionException
- if the parse fails
-
-