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.DefaultArtifactOverrides default file behavior with async file holder to restore files from cache lazy. Similar toAttachedArtifact
-
-
Field Summary
Fields Modifier and Type Field Description static StringMSG_ERROR_RETRIEVING_ARTIFACT_FILEstatic StringMSG_INTERRUPTED_WHILE_RETRIEVING_ARTIFACT_FILE
-
Constructor Summary
Constructors Constructor Description RestoredArtifact(org.apache.maven.artifact.Artifact parent, Future<File> fileFuture, String type, String classifier, org.apache.maven.artifact.handler.ArtifactHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetFile()Returns file using caller thread to download it if necessaryvoidsetFile(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:
getFilein interfaceorg.apache.maven.artifact.Artifact- Overrides:
getFilein classorg.apache.maven.artifact.DefaultArtifact
-
setFile
public void setFile(File destination)
- Specified by:
setFilein interfaceorg.apache.maven.artifact.Artifact- Overrides:
setFilein classorg.apache.maven.artifact.DefaultArtifact
-
-