org.apache.commons.javaflow.ant
Class AntRewriteTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.apache.commons.javaflow.ant.AntRewriteTask
All Implemented Interfaces:
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.

Author:
tcurdt, Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset, useDefaultExcludes
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
AntRewriteTask()
           
 
Method Summary
protected  void checkParameters()
          Check that all required attributes have been set and nothing silly has been entered.
 void execute()
           
 void setDstDir(java.io.File pFile)
          Directory to which the transformed files will be written.
 void setMode(java.lang.String name)
          Sets the transformer to use.
 void setSrcDir(java.io.File pFile)
          Directory from which the input files are read.
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, 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
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntRewriteTask

public AntRewriteTask()
Method Detail

setDstDir

public void setDstDir(java.io.File pFile)
Directory to which the transformed files will be written. This can be the same as the source directory.


setSrcDir

public void setSrcDir(java.io.File pFile)
Directory from which the input files are read. This and the inherited MatchingTask forms an implicit FileSet.


setMode

public void setMode(java.lang.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 - either "BCEL" or "ASM". Case insensitive.

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


Copyright 2004-2008 The Apache Software Foundation. All Rights Reserved.