Apache Ant 1.5.4 Manual


Add to my manuals
305 Pages

advertisement

Apache Ant 1.5.4 Manual | Manualzz

Ant Manual 1.5.4 12/9/2003 7:47 PM

<filters>

<include class="com.mycompany.*" method="*"/>

<exclude class="com.mycompany.MyClass" method="test*"/>

</filters> reports the coverage on all packages, classes and methods from com.mycompany except all methods starting by test on the class MyClass in the package com.mycompany

triggers

Define a number of events to use for interacting with the collection of data performed during coverage. For example you may run a whole application but only decide to collect data once it reaches a certain method and once it exits another one.

The only type of nested element is the method element (triggers are performed on method) and it has the following attributes:

Attribute Description Required

name event

The name of the method(s) as a regular expression. The name is the fully qualified name on the form package.classname.method

Yes the event on the method that will trigger the action. Must be "enter" or "exit". Yes action the action to execute. Must be one of "clear", "pause", "resume", "snapshot",

"suspend", or "exit".

They respectively clear recording, pause recording, resume recording, take a snapshot, suspend the recording and exit the program.

Yes

Example of triggers

<triggers>

<method name="ClassName.*()" event="enter" action="snapshot"/>

<method name="ClassName.MethodName()" event="exit" action="exit"/>

</triggers>

Will take a snapshot when it enters any method of the class ClassName and will exit the program once it exits the method MethodName of the same class.

10.21.3 JPCovMerge

Description

Perform the merge of several snapshots into a single one.

Parameters

Attribute Description Required

home The directory where JProbe is installed. Yes tofile the output filename that will be the result of the name. Yes verbose Perform the merge in verbose mode giving details about the snapshot processing. jpcovmerge collects snapshots using the nested <FileSet> element.

Example of merge

<jpcovmerge home="c:\jprobe" tofile="merge.jpc" verbose="true">

No. Default to false

<fileset dir="./snapshots">

<include name="snap*.jpc"/>

</fileset>

230/305

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents