org.apache.ivy.plugins.resolver.packager

Class PackagerCacheEntry

public class PackagerCacheEntry extends Object

Represents one entry in the cache of a PackagerResolver.
Constructor Summary
PackagerCacheEntry(ModuleRevisionId mr, File rootDir, File resourceCache, String resourceURL, boolean validate, boolean preserve, boolean restricted, boolean verbose, boolean quiet)
Method Summary
voidbuild(Resource packagerResource, Map properties)
Attempt to build this entry.
booleancleanup()
protected voidfinalize()
ResolvedResourcegetBuiltArtifact(Artifact artifact)
Get a built artifact.
booleanisBuilt()
Has this entry been successfully built?
protected voidsaveFile(String name, InputStream input)
protected voidsaveFile(String name)

Constructor Detail

PackagerCacheEntry

public PackagerCacheEntry(ModuleRevisionId mr, File rootDir, File resourceCache, String resourceURL, boolean validate, boolean preserve, boolean restricted, boolean verbose, boolean quiet)

Method Detail

build

public void build(Resource packagerResource, Map properties)
Attempt to build this entry.

Parameters: packagerResource packager metadata resource properties a map of properties to pass to the child Ant build responsible for dependency packaging

Throws: IllegalStateException if this entry has already been built

cleanup

public boolean cleanup()

finalize

protected void finalize()

getBuiltArtifact

public ResolvedResource getBuiltArtifact(Artifact artifact)
Get a built artifact.

Throws: IllegalStateException if this entry's built has not (yet) completed successfully

isBuilt

public boolean isBuilt()
Has this entry been successfully built?

saveFile

protected void saveFile(String name, InputStream input)

saveFile

protected void saveFile(String name)