Class PackagerResolver

  • All Implemented Interfaces:
    Validatable, DependencyResolver, HasLatestStrategy

    public class PackagerResolver
    extends URLResolver
    Resolver that performs a "build" operation to resolve artifacts.

    The resolver is configured with a base URL, from which the "ivy.xml" and "packager.xml" files are resolved. The latter file contains instructions describing how to build the actual artifacts.

    • Constructor Detail

      • PackagerResolver

        public PackagerResolver()
    • Method Detail

      • clearCache

        protected void clearCache()
      • setBuildRoot

        public void setBuildRoot​(java.io.File buildRoot)
        Set root directory under which builds take place.
        Parameters:
        buildRoot - File
      • getBuildRoot

        public java.io.File getBuildRoot()
        Returns root directory under which builds take place.
        Returns:
        File
      • setResourceCache

        public void setResourceCache​(java.io.File resourceCache)
        Set resource cache directory.
        Parameters:
        resourceCache - File
      • getResourceCache

        public java.io.File getResourceCache()
        Get resource cache directory.
        Returns:
        File
      • setResourceURL

        public void setResourceURL​(java.lang.String resourceURL)
        Set base resource override URL pattern.
        Parameters:
        resourceURL - String
      • setPackagerPattern

        public void setPackagerPattern​(java.lang.String pattern)
        Set pattern for locating "packager.xml" files.
        Parameters:
        pattern - String
      • setPreserveBuildDirectories

        public void setPreserveBuildDirectories​(boolean preserve)
        Set whether to preserve build directories. Default is false.
        Parameters:
        preserve - boolean
      • setRestricted

        public void setRestricted​(boolean restricted)
        Set whether to enable restricted mode. Default is true.
        Parameters:
        restricted - boolean
      • setVerbose

        public void setVerbose​(boolean verbose)
        Set whether to run ant with the -verbose flag. Default is false.
        Parameters:
        verbose - boolean
      • setQuiet

        public void setQuiet​(boolean quiet)
        Set whether to run ant with the -quiet flag. Default is false.
        Parameters:
        quiet - boolean
      • setValidate

        public void setValidate​(boolean validate)
        Set whether to validate downloaded packager.xml files. Default is true.
        Overrides:
        setValidate in class AbstractResolver
        Parameters:
        validate - boolean
      • setProperty

        public void setProperty​(java.lang.String propertyKey,
                                java.lang.String propertyValue)
        Sets a property to be passed to the child Ant build responsible for packaging the dependency.
        Parameters:
        propertyKey - the property to pass
        propertyValue - the value of the property to pass
      • validate

        public void validate()
        Description copied from interface: Validatable
        Validates the Validatable, throwing an IllegalStateException if the current state is not valid.
        Specified by:
        validate in interface Validatable
        Overrides:
        validate in class AbstractResolver