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 TypeMethodDescriptionvoid
Attempt to build this entry.boolean
cleanup()
protected void
finalize()
getBuiltArtifact
(Artifact artifact) Get a built artifact.boolean
isBuilt()
Has this entry been successfully built?protected void
protected void
saveFile
(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
-