Class AntRewriteTask

  • All Implemented Interfaces:
    Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

    public class AntRewriteTask
    extends org.apache.tools.ant.taskdefs.MatchingTask
    Ant task that enhances class files with javaflow instrumentation.
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask

        fileset
      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Constructor Summary

      Constructors 
      Constructor Description
      AntRewriteTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkParameters()
      Check that all required attributes have been set and nothing silly has been entered.
      org.apache.tools.ant.types.Path createClasspath()
      Adds a path to the classpath.
      void execute()  
      org.apache.tools.ant.types.Path getClasspath()
      Gets the classpath to be used for this compilation.
      void setClasspath​(org.apache.tools.ant.types.Path classpath)
      Set the classpath to be used for this compilation.
      void setClasspathRef​(org.apache.tools.ant.types.Reference r)
      Adds a reference to a classpath defined elsewhere.
      void setDestdir​(File pFile)
      Directory to which the transformed files will be written.
      void setMode​(String name)
      Sets the transformer to use.
      void setSrcDir​(File pFile)
      Directory from which the input files are read.
      • Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask

        add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
      • Methods inherited from class org.apache.tools.ant.Task

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation
    • Constructor Detail

      • AntRewriteTask

        public AntRewriteTask()
    • Method Detail

      • setDestdir

        public void setDestdir​(File pFile)
        Directory to which the transformed files will be written. This can be the same as the source directory.
        Parameters:
        pFile - destination directory
      • setSrcDir

        public void setSrcDir​(File pFile)
        Directory from which the input files are read. This and the inherited MatchingTask forms an implicit FileSet.
        Parameters:
        pFile - source directory
      • setMode

        public void setMode​(String name)
        Sets the transformer to use.

        This option is unpublished, because in a long run we'll likely to just focus on one transformer and get rid of the other (and this option will be removed then.)

        Parameters:
        name - "ASM5". Case insensitive.
      • setClasspath

        public void setClasspath​(org.apache.tools.ant.types.Path classpath)
        Set the classpath to be used for this compilation.
        Parameters:
        classpath - an Ant Path object containing the compilation classpath.
      • getClasspath

        public org.apache.tools.ant.types.Path getClasspath()
        Gets the classpath to be used for this compilation.
        Returns:
        the class path
      • createClasspath

        public org.apache.tools.ant.types.Path createClasspath()
        Adds a path to the classpath.
        Returns:
        a class path to be configured
      • setClasspathRef

        public void setClasspathRef​(org.apache.tools.ant.types.Reference r)
        Adds a reference to a classpath defined elsewhere.
        Parameters:
        r - a reference to a classpath
      • checkParameters

        protected void checkParameters()
                                throws org.apache.tools.ant.BuildException
        Check that all required attributes have been set and nothing silly has been entered.
        Throws:
        org.apache.tools.ant.BuildException
        Since:
        Ant 1.5
      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException