net.sourceforge.cobertura.ant
Class CommonMatchingTask

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 net.sourceforge.cobertura.ant.CommonMatchingTask
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer
Direct Known Subclasses:
InstrumentTask, MergeTask, ReportTask

public abstract class CommonMatchingTask
extends org.apache.tools.ant.taskdefs.MatchingTask


Field Summary
(package private)  java.lang.String className
           
(package private)  java.util.List fileSets
           
private  org.apache.tools.ant.taskdefs.Java java
           
private  java.lang.String maxMemory
           
 
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
CommonMatchingTask(java.lang.String className)
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet fileSet)
           
(package private)  java.lang.String baseDir(org.apache.tools.ant.types.FileSet fileSet)
           
private  void createArgumentsForFilenames(CommandLineBuilder builder, java.lang.String[] filenames)
           
protected  void createArgumentsForFilesets(CommandLineBuilder builder)
           
 org.apache.tools.ant.types.Path createClasspath()
           
private  java.lang.String getClassName()
           
(package private)  org.apache.tools.ant.DirectoryScanner getDirectoryScanner(org.apache.tools.ant.types.FileSet fileSet)
           
(package private)  java.lang.String[] getExcludedFiles(org.apache.tools.ant.types.FileSet fileSet)
           
(package private)  java.lang.String[] getFilenames(org.apache.tools.ant.types.FileSet fileSet)
           
(package private)  java.lang.String[] getIncludedFiles(org.apache.tools.ant.types.FileSet fileSet)
           
protected  org.apache.tools.ant.taskdefs.Java getJava()
           
 void setClasspath(org.apache.tools.ant.types.Path classpath)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
           
 void setMaxMemory(java.lang.String maxMemory)
           
 
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, execute, 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

className

final java.lang.String className

fileSets

final java.util.List fileSets

java

private org.apache.tools.ant.taskdefs.Java java

maxMemory

private java.lang.String maxMemory
Constructor Detail

CommonMatchingTask

public CommonMatchingTask(java.lang.String className)
Method Detail

getClassName

private java.lang.String getClassName()

getJava

protected org.apache.tools.ant.taskdefs.Java getJava()

createArgumentsForFilesets

protected void createArgumentsForFilesets(CommandLineBuilder builder)
                                   throws java.io.IOException
Throws:
java.io.IOException

createArgumentsForFilenames

private void createArgumentsForFilenames(CommandLineBuilder builder,
                                         java.lang.String[] filenames)
                                  throws java.io.IOException
Throws:
java.io.IOException

createClasspath

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

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path classpath)

setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference r)

getDirectoryScanner

org.apache.tools.ant.DirectoryScanner getDirectoryScanner(org.apache.tools.ant.types.FileSet fileSet)

getIncludedFiles

java.lang.String[] getIncludedFiles(org.apache.tools.ant.types.FileSet fileSet)

getExcludedFiles

java.lang.String[] getExcludedFiles(org.apache.tools.ant.types.FileSet fileSet)

getFilenames

java.lang.String[] getFilenames(org.apache.tools.ant.types.FileSet fileSet)

baseDir

java.lang.String baseDir(org.apache.tools.ant.types.FileSet fileSet)

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet fileSet)

setMaxMemory

public void setMaxMemory(java.lang.String maxMemory)
Parameters:
maxMemory - Assumed to be something along the lines of 100M or 50K or 1G.