Class AbstractDependency
- java.lang.Object
-
- org.codehaus.cargo.maven3.configuration.AbstractDependency
-
- Direct Known Subclasses:
Dependency
,Deployable
public abstract class AbstractDependency extends Object
Common field and method toDependency
andDeployable
.
-
-
Constructor Summary
Constructors Constructor Description AbstractDependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
protected String
findArtifactLocation(Set<org.apache.maven.artifact.Artifact> artifacts, org.apache.maven.plugin.logging.Log log)
Find artifact location for the artifact of this dependency.String
getArtifactId()
String
getClassifier()
String
getGroupId()
String
getLocation()
String
getType()
int
hashCode()
void
setArtifactId(String artifactId)
void
setClassifier(String classifier)
void
setGroupId(String groupId)
void
setLocation(String location)
void
setType(String type)
String
toString()
-
-
-
Method Detail
-
setType
public void setType(String type)
- Parameters:
type
- Type.
-
getType
public String getType()
- Returns:
- Type.
-
setLocation
public void setLocation(String location)
- Parameters:
location
- Location.
-
getLocation
public String getLocation()
- Returns:
- Location.
-
setGroupId
public void setGroupId(String groupId)
- Parameters:
groupId
- Group id.
-
getGroupId
public String getGroupId()
- Returns:
- Group id.
-
setArtifactId
public void setArtifactId(String artifactId)
- Parameters:
artifactId
- Artifact id.
-
getArtifactId
public String getArtifactId()
- Returns:
- Artifact id.
-
setClassifier
public void setClassifier(String classifier)
- Parameters:
classifier
- Classifier.
-
getClassifier
public String getClassifier()
- Returns:
- Classifier.
-
findArtifactLocation
protected String findArtifactLocation(Set<org.apache.maven.artifact.Artifact> artifacts, org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException
Find artifact location for the artifact of this dependency.- Parameters:
artifacts
- All artifacts' list.log
- Logger.- Returns:
- Artifact location.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- If resolve fails.
-
-