net.sourceforge.cobertura.ant

Class CommonMatchingTask

public abstract class CommonMatchingTask extends MatchingTask

Field Summary
StringclassName
ListfileSets
Javajava
StringmaxMemory
Constructor Summary
CommonMatchingTask(String className)
Method Summary
voidaddFileset(FileSet fileSet)
StringbaseDir(FileSet fileSet)
voidcreateArgumentsForFilenames(CommandLineBuilder builder, String[] filenames)
protected voidcreateArgumentsForFilesets(CommandLineBuilder builder)
We replace %20 with a space character because, for some reason, when we call Cobertura from within CruiseControl, the classpath here contains %20's instead of spaces.
PathcreateClasspath()
StringgetClassName()
DirectoryScannergetDirectoryScanner(FileSet fileSet)
String[]getExcludedFiles(FileSet fileSet)
String[]getFilenames(FileSet fileSet)
String[]getIncludedFiles(FileSet fileSet)
protected JavagetJava()
voidsetClasspath(Path classpath)
voidsetClasspathRef(Reference r)
voidsetMaxMemory(String maxMemory)

Field Detail

className

final String className

fileSets

final List fileSets

java

private Java java

maxMemory

private String maxMemory

Constructor Detail

CommonMatchingTask

public CommonMatchingTask(String className)

Method Detail

addFileset

public void addFileset(FileSet fileSet)

baseDir

String baseDir(FileSet fileSet)

createArgumentsForFilenames

private void createArgumentsForFilenames(CommandLineBuilder builder, String[] filenames)

createArgumentsForFilesets

protected void createArgumentsForFilesets(CommandLineBuilder builder)
We replace %20 with a space character because, for some reason, when we call Cobertura from within CruiseControl, the classpath here contains %20's instead of spaces. I don't know if this is our problem, or CruiseControl, or ant, but this seems to fix it. --Mark

createClasspath

public Path createClasspath()

getClassName

private String getClassName()

getDirectoryScanner

DirectoryScanner getDirectoryScanner(FileSet fileSet)

getExcludedFiles

String[] getExcludedFiles(FileSet fileSet)

getFilenames

String[] getFilenames(FileSet fileSet)

getIncludedFiles

String[] getIncludedFiles(FileSet fileSet)

getJava

protected Java getJava()

setClasspath

public void setClasspath(Path classpath)

setClasspathRef

public void setClasspathRef(Reference r)

setMaxMemory

public void setMaxMemory(String maxMemory)

Parameters: maxMemory Assumed to be something along the lines of 100M or 50K or 1G.