Class PackagerCacheEntry

java.lang.Object
org.apache.ivy.plugins.resolver.packager.PackagerCacheEntry

public class PackagerCacheEntry extends Object
Represents one entry in the cache of a PackagerResolver.
  • 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

      public void build(Resource packagerResource, Map<String,String> properties) throws IOException
      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:
      IOException - if this entry has already been built
    • isBuilt

      public boolean isBuilt()
      Has this entry been successfully built?
      Returns:
      boolean
    • getBuiltArtifact

      public ResolvedResource getBuiltArtifact(Artifact artifact)
      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

      protected void saveFile(String name, InputStream input) throws IOException
      Throws:
      IOException
    • saveFile

      protected void saveFile(String name) throws IOException
      Throws:
      IOException
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable