Class PackagerCacheEntry
java.lang.Object
org.apache.ivy.plugins.resolver.packager.PackagerCacheEntry
Represents one entry in the cache of a
PackagerResolver.-
Constructor Summary
ConstructorsConstructorDescriptionPackagerCacheEntry(ModuleRevisionId mr, File rootDir, File resourceCache, String resourceURL, boolean validate, boolean preserve, boolean restricted, boolean verbose, boolean quiet) -
Method Summary
Modifier and TypeMethodDescriptionvoidAttempt to build this entry.booleancleanup()protected voidfinalize()getBuiltArtifact(Artifact artifact) Get a built artifact.booleanisBuilt()Has this entry been successfully built?protected voidprotected voidsaveFile(String name, InputStream input)
-
Constructor Details
-
PackagerCacheEntry
public PackagerCacheEntry(ModuleRevisionId mr, File rootDir, File resourceCache, String resourceURL, boolean validate, boolean preserve, boolean restricted, boolean verbose, boolean quiet)
-
-
Method Details
-
build
Attempt to build this entry.- Parameters:
packagerResource- packager metadata resourceproperties- a map of properties to pass to the child Ant build responsible for dependency packaging- Throws:
IOException- if this entry has already been built
-
isBuilt
public boolean isBuilt()Has this entry been successfully built?- Returns:
- boolean
-
getBuiltArtifact
Get a built artifact.- Parameters:
artifact- ditto- Returns:
- ResolvedResource
- Throws:
IllegalStateException- if this entry's built has not (yet) completed successfully
-
cleanup
public boolean cleanup() -
saveFile
- Throws:
IOException
-
saveFile
- Throws:
IOException
-
finalize
-