|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface defining an artifact (which probably lives in the repository).
Field Summary | |
static java.lang.String |
OVERRIDE_NONE
|
static java.lang.String |
OVERRIDE_PATH
|
static java.lang.String |
OVERRIDE_VERSION
|
Method Summary | |
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. |
Field Detail |
public static final java.lang.String OVERRIDE_NONE
public static final java.lang.String OVERRIDE_VERSION
public static final java.lang.String OVERRIDE_PATH
Method Detail |
public void setDependency(org.apache.maven.project.Dependency dependency)
dependency
- Dependency this artifact is based on.public org.apache.maven.project.Dependency getDependency()
public void setPath(java.lang.String path)
path
- Path to the artifact.public java.lang.String getPath()
public java.lang.String generatePath()
public java.lang.String getUrlPath()
public java.lang.String getChecksumUrl()
public java.lang.String getName()
public boolean isSnapshot()
public boolean exists()
public java.io.File getFile()
public void verify() throws ChecksumVerificationException
ChecksumVerificationException
- if verification failspublic void setOverrideType(java.lang.String overrideType)
public java.lang.String getOverrideType()
public java.lang.String getDescription()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |