public abstract class AbstractArtifact extends java.lang.Object implements Artifact
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
fs
Platform specific file separator used for file system operations.
|
OVERRIDE_NONE, OVERRIDE_PATH, OVERRIDE_VERSION| Constructor and Description |
|---|
AbstractArtifact(org.apache.maven.project.Dependency dependency)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Boolean flag indicating whether this artifact exists.
|
java.lang.String |
generatePath()
Generate the path for this artifact given its dependency attributes.
|
java.lang.String |
getChecksumUrl()
Return the url to the checksum file for this artifact.
|
org.apache.maven.project.Dependency |
getDependency()
Get the dependency.
|
java.lang.String |
getDescription() |
java.io.File |
getFile()
Get the location of the artifact in the local file system.
|
java.lang.String |
getName()
Get the name of the artifact from the underlying dependency.
|
java.lang.String |
getOverrideType() |
java.lang.String |
getPath()
Return the path of the artifact using platform specific naming
conventions.
|
java.lang.String |
getUrlPath()
Return an URL path that is platform agnostic.
|
boolean |
isSnapshot()
Boolean flag indicating whether this artifact is a snapshot.
|
void |
setDependency(org.apache.maven.project.Dependency dependency)
Set the dependency for this JAR artifact.
|
void |
setOverrideType(java.lang.String overrideType) |
void |
setPath(java.lang.String repositoryPath)
Set the path to the artifact.
|
void |
verify()
C H E C K S U M V E R I F I C A T I O N
|
protected static final java.lang.String fs
public AbstractArtifact(org.apache.maven.project.Dependency dependency)
dependency - the dependency the artifact is based onpublic void setDependency(org.apache.maven.project.Dependency dependency)
ArtifactsetDependency in interface Artifactdependency - Dependency this artifact is based on.Artifact.setDependency(org.apache.maven.project.Dependency)public org.apache.maven.project.Dependency getDependency()
ArtifactgetDependency in interface ArtifactArtifact.getDependency()public void setPath(java.lang.String repositoryPath)
ArtifactsetPath in interface ArtifactrepositoryPath - Path to the artifact.Artifact.setPath(java.lang.String)public java.lang.String getPath()
ArtifactgetPath in interface ArtifactArtifact.getPath()public java.lang.String generatePath()
ArtifactgeneratePath in interface Artifactpublic java.lang.String getUrlPath()
ArtifactgetUrlPath in interface ArtifactArtifact.getUrlPath()public java.lang.String getChecksumUrl()
ArtifactgetChecksumUrl in interface ArtifactArtifact.getChecksumUrl()public java.lang.String getName()
public boolean exists()
Artifactexists in interface ArtifactArtifact.exists()public boolean isSnapshot()
ArtifactisSnapshot in interface ArtifactArtifact.isSnapshot()public java.io.File getFile()
ArtifactgetFile in interface ArtifactArtifact.getFile()public void verify()
throws ChecksumVerificationException
verify in interface ArtifactChecksumVerificationException - when the checksum differspublic java.lang.String getOverrideType()
getOverrideType in interface Artifactpublic void setOverrideType(java.lang.String overrideType)
setOverrideType in interface Artifactpublic java.lang.String getDescription()
getDescription in interface ArtifactCopyright © 2001-2013 Apache Software Foundation. All Rights Reserved.