Class Dependency
- java.lang.Object
-
- org.codehaus.cargo.maven3.configuration.AbstractDependency
-
- org.codehaus.cargo.maven3.configuration.Dependency
-
public class Dependency extends AbstractDependency
Allow users to add classpath entries to the classpath used to start the container. This is the configuration class for passingLocalContainer.addExtraClasspath()information.
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXTRA_CLASSPATHRepresents the "extra" classpath type.static StringSHARED_CLASSPATHRepresents the "shared" classpath type.
-
Constructor Summary
Constructors Constructor Description Dependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClasspath()StringgetDependencyPath(CargoProject project)Get the path of this dependency.booleanisOnClasspath(String classpath)Evaluates if the Dependency is targeted for a classpath type.voidsetClasspath(String classpath)-
Methods inherited from class org.codehaus.cargo.maven3.configuration.AbstractDependency
equals, findArtifactLocation, getArtifactId, getClassifier, getGroupId, getLocation, getType, hashCode, setArtifactId, setClassifier, setGroupId, setLocation, setType, toString
-
-
-
-
Field Detail
-
EXTRA_CLASSPATH
public static final String EXTRA_CLASSPATH
Represents the "extra" classpath type.- See Also:
- Constant Field Values
-
SHARED_CLASSPATH
public static final String SHARED_CLASSPATH
Represents the "shared" classpath type.- See Also:
- Constant Field Values
-
-
Method Detail
-
getClasspath
public String getClasspath()
- Returns:
- The Dependency target classpath.
-
setClasspath
public void setClasspath(String classpath)
- Parameters:
classpath- the Dependency target classpath.
-
isOnClasspath
public boolean isOnClasspath(String classpath)
Evaluates if the Dependency is targeted for a classpath type.- Parameters:
classpath- a classpath type to compare with- Returns:
trueif this Dependency is targeted for the classpath type.
-
getDependencyPath
public String getDependencyPath(CargoProject project) throws org.apache.maven.plugin.MojoExecutionException
Get the path of this dependency.- Parameters:
project- Cargo project.- Returns:
- Path of this dependency.
- Throws:
org.apache.maven.plugin.MojoExecutionException- If the artifact is incorrect.
-
-