public class PackagerCacheEntry
extends java.lang.Object
PackagerResolver
.Constructor and Description |
---|
PackagerCacheEntry(ModuleRevisionId mr,
java.io.File rootDir,
java.io.File resourceCache,
java.lang.String resourceURL,
boolean validate,
boolean preserve,
boolean restricted,
boolean verbose,
boolean quiet) |
Modifier and Type | Method and Description |
---|---|
void |
build(Resource packagerResource,
java.util.Map properties)
Attempt to build this entry.
|
boolean |
cleanup() |
protected void |
finalize() |
ResolvedResource |
getBuiltArtifact(Artifact artifact)
Get a built artifact.
|
boolean |
isBuilt()
Has this entry been successfully built?
|
protected void |
saveFile(java.lang.String name) |
protected void |
saveFile(java.lang.String name,
java.io.InputStream input) |
public PackagerCacheEntry(ModuleRevisionId mr, java.io.File rootDir, java.io.File resourceCache, java.lang.String resourceURL, boolean validate, boolean preserve, boolean restricted, boolean verbose, boolean quiet)
public void build(Resource packagerResource, java.util.Map properties) throws java.io.IOException
packagerResource
- packager metadata resourceproperties
- a map of properties to pass to the child Ant build responsible for dependency
packagingjava.lang.IllegalStateException
- if this entry has already been builtjava.io.IOException
public boolean isBuilt()
public ResolvedResource getBuiltArtifact(Artifact artifact)
java.lang.IllegalStateException
- if this entry's built has not (yet) completed successfullypublic boolean cleanup()
protected void saveFile(java.lang.String name, java.io.InputStream input) throws java.io.IOException
java.io.IOException
protected void saveFile(java.lang.String name) throws java.io.IOException
java.io.IOException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable