net.sourceforge.cobertura.ant
Class InstrumentTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.MatchingTask
              extended bynet.sourceforge.cobertura.ant.CommonMatchingTask
                  extended bynet.sourceforge.cobertura.ant.InstrumentTask
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

public class InstrumentTask
extends CommonMatchingTask


Field Summary
private  java.lang.String dataFile
           
(package private)  java.util.List excludeClassesRegexs
           
private  java.util.HashMap fileSetMap
           
private  java.lang.Integer forkedJVMDebugPort
           
(package private)  java.util.List ignoreBranchesRegexs
           
(package private)  java.util.List ignoreRegexs
           
(package private)  java.util.List includeClassesRegexs
           
private  org.apache.tools.ant.types.Path instrumentationClasspath
           
private  java.io.File toDir
           
 
Fields inherited from class net.sourceforge.cobertura.ant.CommonMatchingTask
className, fileSets
 
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
InstrumentTask()
           
 
Method Summary
private  void addFileToFilesets(java.io.File file)
           
 ExcludeClasses createExcludeClasses()
           
private  void createFilesetForDirectory(java.io.File dir)
           
 Ignore createIgnore()
           
 IgnoreBranches createIgnoreBranches()
           
 IncludeClasses createIncludeClasses()
           
 org.apache.tools.ant.types.Path createInstrumentationClasspath()
           
 void execute()
           
private  org.apache.tools.ant.types.FileSet getFileSet(java.io.File dir)
           
private  void processInstrumentationClasspath()
           
 void setDataFile(java.lang.String dataFile)
           
 void setForkedJVMDebugPort(java.lang.Integer forkedJVMDebugPort)
           
 void setToDir(java.io.File toDir)
           
 
Methods inherited from class net.sourceforge.cobertura.ant.CommonMatchingTask
addFileset, baseDir, createArgumentsForFilesets, createClasspath, getDirectoryScanner, getExcludedFiles, getFilenames, getIncludedFiles, getJava, setClasspath, setClasspathRef, setMaxMemory
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataFile

private java.lang.String dataFile

toDir

private java.io.File toDir

ignoreRegexs

java.util.List ignoreRegexs

ignoreBranchesRegexs

java.util.List ignoreBranchesRegexs

includeClassesRegexs

java.util.List includeClassesRegexs

excludeClassesRegexs

java.util.List excludeClassesRegexs

forkedJVMDebugPort

private java.lang.Integer forkedJVMDebugPort

instrumentationClasspath

private org.apache.tools.ant.types.Path instrumentationClasspath

fileSetMap

private java.util.HashMap fileSetMap
Constructor Detail

InstrumentTask

public InstrumentTask()
Method Detail

createIgnore

public Ignore createIgnore()

createIgnoreBranches

public IgnoreBranches createIgnoreBranches()

createIncludeClasses

public IncludeClasses createIncludeClasses()

createExcludeClasses

public ExcludeClasses createExcludeClasses()

createInstrumentationClasspath

public org.apache.tools.ant.types.Path createInstrumentationClasspath()

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

processInstrumentationClasspath

private void processInstrumentationClasspath()

addFileToFilesets

private void addFileToFilesets(java.io.File file)

getFileSet

private org.apache.tools.ant.types.FileSet getFileSet(java.io.File dir)

createFilesetForDirectory

private void createFilesetForDirectory(java.io.File dir)

setDataFile

public void setDataFile(java.lang.String dataFile)

setToDir

public void setToDir(java.io.File toDir)

setForkedJVMDebugPort

public void setForkedJVMDebugPort(java.lang.Integer forkedJVMDebugPort)