net.sourceforge.cobertura.ant
Class InstrumentTask

java.lang.Object
  extended by MatchingTask
      extended by net.sourceforge.cobertura.ant.CommonMatchingTask
          extended by net.sourceforge.cobertura.ant.InstrumentTask

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  Path instrumentationClasspath
           
private  java.io.File toDir
           
 
Fields inherited from class net.sourceforge.cobertura.ant.CommonMatchingTask
className, fileSets
 
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()
           
 Path createInstrumentationClasspath()
           
 void execute()
           
private  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
addDirSet, addFileset, baseDir, createArgumentsForFilesets, createClasspath, getDirectoryScanner, getExcludedFiles, getFilenames, getIncludedFiles, getJava, setClasspath, setClasspathRef, setForkedJVMDebugPort, setMaxMemory
 
Methods inherited from class java.lang.Object
clone, 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 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 Path createInstrumentationClasspath()

execute

public void execute()
             throws BuildException
Throws:
BuildException

processInstrumentationClasspath

private void processInstrumentationClasspath()

addFileToFilesets

private void addFileToFilesets(java.io.File file)

getFileSet

private 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)