public interface Artifact
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OVERRIDE_NONE |
static java.lang.String |
OVERRIDE_PATH |
static java.lang.String |
OVERRIDE_VERSION |
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()
Return the name of the artifact.
|
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 path)
Set the path to the artifact.
|
void |
verify()
Verify the artifact.
|
static final java.lang.String OVERRIDE_NONE
static final java.lang.String OVERRIDE_VERSION
static final java.lang.String OVERRIDE_PATH
void setDependency(org.apache.maven.project.Dependency dependency)
dependency
- Dependency this artifact is based on.org.apache.maven.project.Dependency getDependency()
void setPath(java.lang.String path)
path
- Path to the artifact.java.lang.String getPath()
java.lang.String generatePath()
java.lang.String getUrlPath()
java.lang.String getChecksumUrl()
java.lang.String getName()
boolean isSnapshot()
boolean exists()
java.io.File getFile()
void verify() throws ChecksumVerificationException
ChecksumVerificationException
- if verification failsvoid setOverrideType(java.lang.String overrideType)
java.lang.String getOverrideType()
java.lang.String getDescription()
Copyright © 2001-2013 Apache Software Foundation. All Rights Reserved.