net.sourceforge.cobertura.ant
Class CommonMatchingTask

java.lang.Object
  extended by MatchingTask
      extended by net.sourceforge.cobertura.ant.CommonMatchingTask
Direct Known Subclasses:
CheckTask, InstrumentTask, MergeTask, ReportTask

public abstract class CommonMatchingTask
extends MatchingTask


Field Summary
(package private)  java.lang.String className
           
(package private)  java.util.List fileSets
           
private  int forkedJVMDebugPort
           
private  Java java
           
private  java.lang.String maxMemory
           
 
Constructor Summary
CommonMatchingTask(java.lang.String className)
           
 
Method Summary
 void addDirSet(DirSet dirSet)
           
 void addFileset(FileSet fileSet)
           
(package private)  java.lang.String baseDir(AbstractFileSet fileSet)
           
private  void createArgumentsForFilenames(CommandLineBuilder builder, java.lang.String[] filenames)
           
protected  void createArgumentsForFilesets(CommandLineBuilder builder)
           
 Path createClasspath()
           
private  java.lang.String getClassName()
           
(package private)  DirectoryScanner getDirectoryScanner(AbstractFileSet fileSet)
           
(package private)  java.lang.String[] getExcludedFiles(FileSet fileSet)
           
(package private)  java.lang.String[] getFilenames(AbstractFileSet fileSet)
           
(package private)  java.lang.String[] getIncludedFiles(AbstractFileSet fileSet)
           
protected  Java getJava()
           
 void setClasspath(Path classpath)
           
 void setClasspathRef(Reference r)
           
 void setForkedJVMDebugPort(int forkedJVMDebugPort)
          Used to debug the process that is forked to perform the operation.
 void setMaxMemory(java.lang.String maxMemory)
           
 
Methods inherited from class java.lang.Object
clone, 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 Java java

maxMemory

private java.lang.String maxMemory

forkedJVMDebugPort

private int forkedJVMDebugPort
Constructor Detail

CommonMatchingTask

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

getClassName

private java.lang.String getClassName()

getJava

protected 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 Path createClasspath()

setClasspath

public void setClasspath(Path classpath)

setClasspathRef

public void setClasspathRef(Reference r)

getDirectoryScanner

DirectoryScanner getDirectoryScanner(AbstractFileSet fileSet)

getIncludedFiles

java.lang.String[] getIncludedFiles(AbstractFileSet fileSet)

getExcludedFiles

java.lang.String[] getExcludedFiles(FileSet fileSet)

getFilenames

java.lang.String[] getFilenames(AbstractFileSet fileSet)

baseDir

java.lang.String baseDir(AbstractFileSet fileSet)

addDirSet

public void addDirSet(DirSet dirSet)

addFileset

public void addFileset(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.

setForkedJVMDebugPort

public void setForkedJVMDebugPort(int forkedJVMDebugPort)
Used to debug the process that is forked to perform the operation. Setting this to a non-zero number will cause the process to open a debug port on that port number. It will suspend until a remote debugger is attached to the port.

Parameters:
forkedJVMDebugPort -