Class PackagerCacheEntry
java.lang.Object
org.apache.ivy.plugins.resolver.packager.PackagerCacheEntry
Represents one entry in the cache of a
PackagerResolver.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final Fileprivate final ModuleRevisionIdprivate final booleanprivate final booleanprivate final Fileprivate final Stringprivate final booleanprivate final booleanprivate final boolean -
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.private Stringprivate static FilegetSubdir(File rootDir, ModuleRevisionId mr) booleanisBuilt()Has this entry been successfully built?protected voidprotected voidsaveFile(String name, InputStream input)
-
Field Details
-
mr
-
dir
-
resourceCache
-
resourceURL
-
validate
private final boolean validate -
preserve
private final boolean preserve -
restricted
private final boolean restricted -
verbose
private final boolean verbose -
quiet
private final boolean quiet -
built
private boolean built
-
-
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
-
getResourceURL
-
getSubdir
-