Class IvyRetrieve

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class IvyRetrieve
    extends IvyPostResolveTask
    This task allow to retrieve dependencies from the cache to a local directory like a lib dir.
    • Field Detail

      • OVERWRITEMODE_VALUES

        private static final java.util.Collection<java.lang.String> OVERWRITEMODE_VALUES
      • pattern

        private java.lang.String pattern
      • ivypattern

        private java.lang.String ivypattern
      • sync

        private boolean sync
      • symlink

        private boolean symlink
      • symlinkmass

        private boolean symlinkmass
      • overwriteMode

        private java.lang.String overwriteMode
      • pathId

        private java.lang.String pathId
      • setId

        private java.lang.String setId
      • mapper

        private org.apache.tools.ant.types.Mapper mapper
    • Constructor Detail

      • IvyRetrieve

        public IvyRetrieve()
    • Method Detail

      • getPattern

        public java.lang.String getPattern()
      • setPattern

        public void setPattern​(java.lang.String pattern)
      • getPathId

        public java.lang.String getPathId()
      • setPathId

        public void setPathId​(java.lang.String pathId)
      • getSetId

        public java.lang.String getSetId()
      • setSetId

        public void setSetId​(java.lang.String setId)
      • doExecute

        public void doExecute()
                       throws org.apache.tools.ant.BuildException
        Description copied from class: IvyTask
        The real logic of task execution after project has been set in the context. MUST be implemented by subclasses
        Specified by:
        doExecute in class IvyTask
        Throws:
        org.apache.tools.ant.BuildException - if something goes wrong
      • getAllowedLogOptions

        protected java.util.Collection<java.lang.String> getAllowedLogOptions()
      • getIvypattern

        public java.lang.String getIvypattern()
      • setIvypattern

        public void setIvypattern​(java.lang.String ivypattern)
      • isSync

        public boolean isSync()
      • setSync

        public void setSync​(boolean sync)
      • setSymlink

        public void setSymlink​(boolean symlink)
        Option to create symlinks instead of copying.
        Parameters:
        symlink - boolean
      • setSymlinkmass

        @Deprecated
        public void setSymlinkmass​(boolean symlinkmass)
        Deprecated.
        Starting 2.5, symlinking in mass isn't supported
        Option to create symlinks in one mass action, instead of separately.
        Parameters:
        symlinkmass - boolean
      • setOverwriteMode

        public void setOverwriteMode​(java.lang.String overwriteMode)
      • getOverwriteMode

        public java.lang.String getOverwriteMode()
      • addMapper

        public void addMapper​(org.apache.tools.ant.types.Mapper mapper)
        Add a mapper to convert the file names.
        Parameters:
        mapper - a Mapper value.
      • add

        public void add​(org.apache.tools.ant.util.FileNameMapper fileNameMapper)
        Add a nested filenamemapper.
        Parameters:
        fileNameMapper - the mapper to add.
      • getPath

        private java.lang.String getPath​(java.io.File base,
                                         java.io.File file)
        Returns the path of the file relative to the given base directory.
        Parameters:
        base - the parent directory to which the file must be evaluated.
        file - the file for which the path should be returned
        Returns:
        the path of the file relative to the given base directory.