Class RestoredArtifact
- java.lang.Object
-
- org.apache.maven.artifact.DefaultArtifact
-
- org.apache.maven.buildcache.artifact.RestoredArtifact
-
- All Implemented Interfaces:
Comparable<org.apache.maven.artifact.Artifact>
,org.apache.maven.artifact.Artifact
public class RestoredArtifact extends org.apache.maven.artifact.DefaultArtifact
Overrides default file behavior with async file holder to restore files from cache lazy. Similar toAttachedArtifact
-
-
Field Summary
Fields Modifier and Type Field Description static String
MSG_ERROR_RETRIEVING_ARTIFACT_FILE
static String
MSG_INTERRUPTED_WHILE_RETRIEVING_ARTIFACT_FILE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getFile()
Returns file using caller thread to download it if necessaryvoid
setFile(File destination)
-
Methods inherited from class org.apache.maven.artifact.DefaultArtifact
addMetadata, compareTo, equals, getArtifactHandler, getArtifactId, getAvailableVersions, getBaseVersion, getBaseVersionInternal, getClassifier, getDependencyConflictId, getDependencyFilter, getDependencyTrail, getDownloadUrl, getGroupId, getId, getMetadataList, getRepository, getScope, getSelectedVersion, getType, getVersion, getVersionRange, hasClassifier, hashCode, isOptional, isRelease, isResolved, isSelectedVersionKnown, isSnapshot, selectVersion, setArtifactHandler, setArtifactId, setAvailableVersions, setBaseVersion, setBaseVersionInternal, setDependencyFilter, setDependencyTrail, setDownloadUrl, setGroupId, setOptional, setRelease, setRepository, setResolved, setResolvedVersion, setScope, setVersion, setVersionRange, toString, updateVersion
-
-
-
-
Field Detail
-
MSG_INTERRUPTED_WHILE_RETRIEVING_ARTIFACT_FILE
public static final String MSG_INTERRUPTED_WHILE_RETRIEVING_ARTIFACT_FILE
- See Also:
- Constant Field Values
-
MSG_ERROR_RETRIEVING_ARTIFACT_FILE
public static final String MSG_ERROR_RETRIEVING_ARTIFACT_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFile
public File getFile()
Returns file using caller thread to download it if necessary- Specified by:
getFile
in interfaceorg.apache.maven.artifact.Artifact
- Overrides:
getFile
in classorg.apache.maven.artifact.DefaultArtifact
-
setFile
public void setFile(File destination)
- Specified by:
setFile
in interfaceorg.apache.maven.artifact.Artifact
- Overrides:
setFile
in classorg.apache.maven.artifact.DefaultArtifact
-
-