org.apache.tools.ant.taskdefs.optional.sitraka

Class CovMerge


public class CovMerge
extends CovBase

Runs the snapshot merge utility for JProbe Coverage.

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

CovMerge()
Sole constructor.

Method Summary

void
addFileset(FileSet fs)
add a fileset containing the snapshots to include.
protected void
checkOptions()
check for mandatory options
protected File
createParamFile()
create the parameters file that contains all file to merge and the output filename.
void
execute()
execute the jpcovmerge by providing a parameter file
protected File[]
getSnapshots()
get the snapshots from the filesets
void
setTofile(File value)
Set the output snapshot file.
void
setVerbose(boolean flag)
If true, perform the merge in verbose mode giving details about the snapshot processing.

Methods inherited from class org.apache.tools.ant.taskdefs.optional.sitraka.CovBase

createTempFile, findCoverageJar, findExecutable, getHome, getParamFileArgument, isJProbe4Plus, setHome

Methods inherited from class org.apache.tools.ant.Task

execute, 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, log, log, setProject

Constructor Details

CovMerge

public CovMerge()
Sole constructor.

Method Details

addFileset

public void addFileset(FileSet fs)
add a fileset containing the snapshots to include.


checkOptions

protected void checkOptions()
            throws BuildException
check for mandatory options


createParamFile

protected File createParamFile()
            throws BuildException
create the parameters file that contains all file to merge and the output filename.


execute

public void execute()
            throws BuildException
execute the jpcovmerge by providing a parameter file
Overrides:
execute in interface Task


getSnapshots

protected File[] getSnapshots()
get the snapshots from the filesets


setTofile

public void setTofile(File value)
Set the output snapshot file.


setVerbose

public void setVerbose(boolean flag)
If true, perform the merge in verbose mode giving details about the snapshot processing.


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.