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 boolean
private final File
private final ModuleRevisionId
private final boolean
private final boolean
private final File
private final String
private final boolean
private final boolean
private 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 TypeMethodDescriptionvoid
Attempt to build this entry.boolean
cleanup()
protected void
finalize()
getBuiltArtifact
(Artifact artifact) Get a built artifact.private String
private static File
getSubdir
(File rootDir, ModuleRevisionId mr) boolean
isBuilt()
Has this entry been successfully built?protected void
protected void
saveFile
(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
-