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

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

public class CovReport
extends Task

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

Author:
Stephane Bailliez

Inner Class Summary
 class CovReport.Reference
           
static class CovReport.ReportFormat
           
static class CovReport.ReportType
           
 
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
CovReport()
           
 
Method Summary
protected  void checkOptions()
          check for mandatory options
 Path createCoveragepath()
           
 CovReport.Reference createReference()
           
 Path createSourcepath()
           
 void execute()
          Called by the project to let the task do it's work.
protected  java.lang.String[] getParameters()
           
 void setFilters(java.lang.String values)
          set the filters
 void setFormat(CovReport.ReportFormat value)
          set the format of the report html|text|xml
 void setHome(java.io.File value)
          Set the coverage home.
 void setIncludesource(boolean value)
          include source code lines.
 void setPercent(java.lang.Integer value)
          sets the threshold printing method 0-100
 void setSnapshot(java.io.File value)
           
 void setTofile(java.io.File value)
          Set the output snapshot file
 void setType(CovReport.ReportType value)
          sets the report type executive|summary|detailed|verydetailed
 
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

CovReport

public CovReport()
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 libraries and jars.

setFormat

public void setFormat(CovReport.ReportFormat value)
set the format of the report html|text|xml

setType

public void setType(CovReport.ReportType value)
sets the report type executive|summary|detailed|verydetailed

setIncludesource

public void setIncludesource(boolean value)
include source code lines. XML report only

setPercent

public void setPercent(java.lang.Integer value)
sets the threshold printing method 0-100

setFilters

public void setFilters(java.lang.String values)
set the filters

createSourcepath

public Path createSourcepath()

setSnapshot

public void setSnapshot(java.io.File value)

setTofile

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

createCoveragepath

public Path createCoveragepath()

createReference

public CovReport.Reference createReference()

checkOptions

protected void checkOptions()
                     throws BuildException
check for mandatory options

execute

public void execute()
             throws BuildException
Description copied from class: Task
Called by the project to let the task do it's work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.
Overrides:
execute in class Task
Following copied from class: org.apache.tools.ant.Task
Throws:
BuildException - if someting goes wrong with the build

getParameters

protected java.lang.String[] getParameters()


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