net.sourceforge.groboutils.codecoverage.v2.ant
Class CoveragePostCompilerTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bynet.sourceforge.groboutils.codecoverage.v2.ant.CoveragePostCompilerTask

public class CoveragePostCompilerTask
extends org.apache.tools.ant.Task

Ant task which corresponds to a Counter. Classpath is used for selecting the jar files and directories to discover the available classes for counting, while the filter is used to select which of those classes will actually be recorded.

Since:
December 18, 2002
Version:
$Date: 2003/05/03 01:56:11 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
CoveragePostCompilerTask()
           
 
Method Summary
 void addFileSet(org.apache.tools.ant.types.FileSet fs)
          Add a new fileset instance to this compilation.
 AnalysisModuleType createAnalysisModule()
          Creates a new analysis module.
 void execute()
          Perform the task
 void setDataDir(java.io.File f)
          Sets the directory in which all the data accumulated from the post compilation step will be placed.
 void setOutClassDir(java.io.File f)
          Sets the directory in which all the recompiled class files will be placed.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoveragePostCompilerTask

public CoveragePostCompilerTask()
Method Detail

addFileSet

public void addFileSet(org.apache.tools.ant.types.FileSet fs)
Add a new fileset instance to this compilation. Whatever the fileset is, only filename that are .class will be considered as 'candidates'. Currently, jar files are not read; you'll have to uncompress them to a directory before running this step.

Parameters:
fs - the new fileset containing the rules to get the testcases.

setDataDir

public void setDataDir(java.io.File f)
Sets the directory in which all the data accumulated from the post compilation step will be placed. This should be a directory dedicated just to the output data.


setOutClassDir

public void setOutClassDir(java.io.File f)
Sets the directory in which all the recompiled class files will be placed. This directory should never be confused with the original class file location.


createAnalysisModule

public AnalysisModuleType createAnalysisModule()
Creates a new analysis module.


execute

public void execute()
             throws org.apache.tools.ant.BuildException
Perform the task

Throws:
org.apache.tools.ant.BuildException


Copyright © 2001-2003 by The GroboUtils Project