advertisement
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
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 4 Apache Ant User Manual Authors
- 5 Feedback and Troubleshooting
- 6 Introduction
- 7 Installing Ant
- 14 Running Ant
- 17 Using Ant
- 25 Concepts
- 61 Ant Tasks
- 67 Core Tasks
- 168 Optional Tasks
- 295 Listeners & Loggers
- 11 Apache Ant User Manual Authors
- 12 Feedback and Troubleshooting
- 13 Introduction
- 14 Installing Ant
- 14 Getting Ant
- 14 Binary Edition
- 14 Source Edition
- 14 System Requirements
- 14 Installing Ant
- 15 Setup
- 15 Optional Tasks
- 15 Windows
- 16 Unix (bash)
- 16 Unix (csh)
- 16 Advanced
- 16 Building Ant
- 17 Library Dependencies
- 18 Platform Issues
- 19 Microsoft Windows
- 19 Apple MacOS X
- 19 Novell Netware
- 20 Other platforms
- 21 Running Ant
- 21 Command Line
- 23 Cygwin Users
- 23 Running Ant via Java
- 24 Using Ant
- 24 Writing a Simple Buildfile
- 24 Projects
- 24 Targets
- 25 Tasks
- 26 Properties
- 26 Built-in Properties
- 27 Example Buildfile
- 28 Token Filters
- 28 Path-like Structures
- 30 Command-line Arguments
- 30 Examples
- 30 References
- 32 Concepts
- 32 build.sysclasspath
- 32 Common Attributes of all Tasks
- 32 Core Types
- 32 Description
- 32 Directory-based Tasks
- 36 DirSet
- 37 FileList
- 38 FileSet
- 39 Mapping File Names
- 42 FilterChains and FilterReaders
- 44 FilterReader
- 45 ExpandProperties
- 46 HeadFilter
- 46 LineContains
- 47 LineContainsRegExp
- 47 PrefixLines
- 47 ReplaceTokens
- 48 StripJavaComments
- 48 StripLineBreaks
- 49 StripLineComments
- 49 TabsToSpaces
- 50 TailFilter
- 51 FilterSet
- 52 PatternSet
- 54 Selectors
- 61 XMLCatalog
- 64 Optional Types
- 64 ClassFileSet
- 65 Extension
- 66 ExtensionSet
- 68 Ant Tasks
- 68 Overview of Ant Tasks
- 68 Archive Tasks
- 68 Audit/Coverage Tasks
- 68 Compile Tasks
- 69 Deployment Tasks
- 69 Documentation Tasks
- 69 EJB Tasks
- 69 Execution Tasks
- 69 File Tasks
- 70 Java2 Extensions Tasks
- 70 Logging Tasks
- 70 Mail Tasks
- 70 Miscellaneous Tasks
- 71 .NET Tasks
- 71 Pre-process Tasks
- 71 Property Tasks
- 72 Remote Tasks
- 72 SCM Tasks
- 72 Testing Tasks
- 72 Visual Age for Java Tasks
- 74 Core Tasks
- 76 AntCall
- 77 AntStructure
- 78 Apply/ExecOn
- 80 Available
- 82 Basename
- 82 BuildNumber
- 83 BUnzip2 / GUnzip
- 84 BZip2 / GZip
- 84 Checksum
- 86 Chmod
- 87 Concat
- 88 Condition
- 89 Conditions
- 93 Copydir – Deprecated
- 94 Copyfile – Deprecated
- 96 CvsChangeLog
- 98 cvspass
- 98 CvsTagDiff
- 100 Delete
- 102 Deltree – Deprecated
- 102 DependSet
- 103 Dirname
- 109 Filter
- 109 FixCRLF
- 112 GenKey
- 114 GUnzip
- 114 GZip / BZip
- 114 Input
- 120 Javac
- 125 Javadoc/Javadoc
- 131 LoadFile
- 132 LoadProperties
- 134 Manifest
- 136 Mkdir
- 138 Parallel
- 139 Patch
- 139 Pathconvert
- 141 Property
- 143 Record
- 145 Rename – Deprecated
- 145 Replace
- 146 replacefilter
- 149 Sequential
- 150 SignJar
- 150 Sleep
- 155 Style / Xslt
- 160 Taskdef
- 161 Tempfile
- 161 Touch
- 162 Tstamp
- 163 Typedef
- 164 Unjar/Untar/Unwar/Unzip
- 165 Uptodate
- 167 Waitfor
- 170 XmlP roperty
- 171 Xslt / Style
- 175 Optional Tasks
- 175 .NET tasks
-
175
-
176
-
177
- 178 Change Log
- 179 ANTLR
- 181 ClearCase Support
- 181 CCCheckin
- 182 CCCheckout
- 182 CCUnCheckout
- 183 CCUpdate
- 183 Continuus Support
- 183 CCMCheckin
- 184 CCMCheckout
- 184 CCMCheckinTask
- 184 CCMReconfigure
- 185 CCMCreateTask
- 185 Depend
- 187 Ant EJB Tasks User Manual
- 188 Introduction
- 188 EJB Tasks
- 197 Vendor-specific deployment elements
- 207 echoproperties
- 209 Sending Files
- 210 Getting Files
- 210 Deleting Files
- 210 Listing Files
- 211 Creating Directories
- 211 icontract
- 212 jarlib-available
- 214 jarlib-display
- 215 jarlib- manifest
- 216 jarlib-resolve
- 218 JavaCC
- 220 Javah
- 224 JDepend
- 225 JJTree
- 226 Jlink - Deprecated
- 228 JProbe
- 228 Introduction
- 228 JPCoverage
- 230 JPCovMerge
- 231 JPCovReport
- 233 JUnit
- 237 JUnitReport
- 238 MMetrics
- 239 MAudit
- 241 MimeMail – Deprecated
- 242 MParse
- 243 Native2Ascii
- 244 NetRexxC
- 246 Perforce Tasks User Manual
- 247 Introduction
- 247 The Tasks
- 247 General P4 Properties
- 248 Taskdefs
- 248 P4Sync
- 249 P4Change
- 249 P4Edit
- 249 P4Submit
- 250 P4Have
- 250 P4Label
- 250 P4Counter
- 251 P4Reopen
- 251 P4Revert
- 251 P4Add
- 252 PropertyFile
- 252 Introduction
- 252 PropertyFile Task
- 254 Ant Pvcs Task User Manual
- 255 Introduction
- 255 Pvcs Task
- 257 RenameExtensions – Deprecated
- 258 ReplaceRegExp
- 260 ANT ServerDeploy User Manual
- 260 ServerDeploy element
- 261 Generic element
- 261 WebLogic element
- 262 JOnAS (Java Open Applicaton Server) element
- 263 Setproxy
- 264 Script
- 265 Sound
- 266 SourceOffSite Tasks User Manual
- 266 Introduction
- 267 The Tasks
- 267 SOSGet
- 267 SOSLabel
- 268 SOSCheckIn
- 269 SOSCheckOut
- 269 Splash
- 270 StarTeam Support
- 271 Common Parameters for All Starteam Tasks
- 271 STCheckout
- 273 STCheckin
- 276 STLabel
- 277 STList
- 278 Starteam - Deprecated
- 280 Stylebook
- 281 Telnet
- 283 Translate
- 284 Visual Age for Java Tasks and Plugin User Manual
- 285 Table of Contents
- 285 Introduction
- 285 The Tasks
- 286 VAJLoad
- 286 VAJExport
- 287 VAJImport
- 288 The Plugin
- 291 Frequently Asked Questions
- 292 Microsoft Visual SourceSafe Tasks User Manual
- 293 Introduction
- 293 The Tasks
- 293 VssGet
- 294 VssLabel
- 295 VssHistory
- 296 VssCheckin
- 297 VssCheckout
- 297 VssAdd
- 298 VssCp
- 298 VssCreate
- 299 wljspc
- 300 XMLValidate
- 302 Listeners & Loggers
- 302 Overview
- 302 Listeners
- 302 Loggers
- 302 Built-in Listeners/Loggers
- 302 DefaultLogger
- 302 NoBannerLogger
- 302 MailLogger
- 303 AnsiColorLogger
- 304 Log4jListener
- 305 XmlLogger
- 305 Writing your own