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

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.optional.sitraka.CovMerge

public class CovMerge
extends Task

Convenient task to run the snapshot merge utility for JProbe Coverage.

Author:
Stephane Bailliez

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()
           
 
Method Summary
 void addFileset(FileSet fs)
          add a fileset containing the snapshots to include/exclude
protected  void checkOptions()
          check for mandatory options
protected  java.io.File createParamFile()
          create the parameters file that contains all file to merge and the output filename.
protected  java.io.File createTmpFile()
          create a temporary file in the current dir (For JDK1.1 support)
 void execute()
          execute the jpcovmerge by providing a parameter file
protected  java.io.File[] getSnapshots()
          get the snapshots from the filesets
 void setHome(java.io.File value)
          set the coverage home.
 void setTofile(java.io.File value)
          Set the output snapshot file
 void setVerbose(boolean flag)
          run the merging in verbose mode
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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

CovMerge

public CovMerge()
Method Detail

setHome

public void setHome(java.io.File value)
set the coverage home. it must point to JProbe coverage directories where are stored native librairies and jars

setTofile

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

setVerbose

public void setVerbose(boolean flag)
run the merging in verbose mode

addFileset

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

execute

public void execute()
             throws BuildException
execute the jpcovmerge by providing a parameter file
Overrides:
execute in class Task
Following copied from class: org.apache.tools.ant.Task
Throws:
BuildException - if someting goes wrong with the build

checkOptions

protected void checkOptions()
                     throws BuildException
check for mandatory options

getSnapshots

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

createParamFile

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

createTmpFile

protected java.io.File createTmpFile()
create a temporary file in the current dir (For JDK1.1 support)


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.