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 SummaryFields Modifier and Type Field Description static StringEXTRA_CLASSPATHRepresents the "extra" classpath type.static StringSHARED_CLASSPATHRepresents the "shared" classpath type.
 - 
Constructor SummaryConstructors Constructor Description Dependency()
 - 
Method SummaryAll 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.AbstractDependencyequals, findArtifactLocation, getArtifactId, getClassifier, getGroupId, getLocation, getType, hashCode, setArtifactId, setClassifier, setGroupId, setLocation, setType, toString
 
- 
 
- 
- 
- 
Field Detail- 
EXTRA_CLASSPATHpublic static final String EXTRA_CLASSPATH Represents the "extra" classpath type.- See Also:
- Constant Field Values
 
 - 
SHARED_CLASSPATHpublic static final String SHARED_CLASSPATH Represents the "shared" classpath type.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getClasspathpublic String getClasspath() - Returns:
- The Dependency target classpath.
 
 - 
setClasspathpublic void setClasspath(String classpath) - Parameters:
- classpath- the Dependency target classpath.
 
 - 
isOnClasspathpublic 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.
 
 - 
getDependencyPathpublic 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.
 
 
- 
 
-