blob: 3cdd058205ed85abcd22d8cda2da59471ed70193 [file] [log] [blame]
Evgeny Mandrikov82a92ca2012-01-15 20:25:48 +00001<?xml version="1.0" encoding="ISO-8859-1" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
4<head>
5 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
6 <link rel="stylesheet" href=".resources/doc.css" charset="ISO-8859-1" type="text/css" />
7 <link rel="shortcut icon" href=".resources/report.gif" type="image/gif" />
8 <title>JaCoCo - API Usage Examples</title>
9</head>
10<body>
11
12<div class="breadcrumb">
13 <a href="../index.html" class="el_report">JaCoCo</a> &gt;
14 <a href="index.html" class="el_group">Documentation</a> &gt;
15 <span class="el_source">API Usage Examples</span>
16</div>
17<div id="content">
18
19<h1>API Usage Examples</h1>
20
21<p>
22 To get familiar with the API these examples demonstrate different aspects of
23 the JaCoCo API. Each example can be separately compiled and executed as a Java
24 main program. Some examples require additional command line arguments.
25</p>
26
27<table class="coverage">
28 <thead>
29 <tr>
30 <td>File</td>
31 <td>Description</td>
32 </tr>
33 </thead>
34 <tbody>
35 <tr>
36 <td><a class="el_source" href="examples/java/CoreTutorial.java">CoreTutorial.java</a></td>
37 <td>This tutorial-like example instruments, executes and analyzes a single
38 target class. Finally line coverage information is printed to the
39 console.
40 </td>
41 </tr>
42 <tr>
43 <td><a class="el_source" href="examples/java/ClassInfo.java">ClassInfo.java</a></td>
44 <td>This example writes JaCoCo specific information for given Java class
45 files.
46 </td>
47 </tr>
48 <tr>
49 <td><a class="el_source" href="examples/java/ExecDump.java">ExecDump.java</a></td>
50 <td>Utility to dump the content of execution data files in readable form.
51 </td>
52 </tr>
53 <tr>
54 <td><a class="el_source" href="examples/java/MBeanClient.java">MBeanClient.java</a></td>
55 <td>This example connects to a coverage agent to collect execution data
56 over the JMX.
57 </td>
58 </tr>
59 <tr>
60 <td><a class="el_source" href="examples/java/ExecutionDataClient.java">ExecutionDataClient.java</a></td>
61 <td>This example connects to a coverage agent to collect execution data
62 over the remote protocol.
63 </td>
64 </tr>
65 <tr>
66 <td><a class="el_source" href="examples/java/ExecutionDataServer.java">ExecutionDataServer.java</a></td>
67 <td>This example starts a socket server to collect execution data from
68 agents over the remote protocol.
69 </td>
70 </tr>
71 <tr>
72 <td><a class="el_source" href="examples/java/ReportGenerator.java">ReportGenerator.java</a></td>
73 <td>This example generates HTML reports based on a simple project layout and well known execution
74 data store file name.</td>
75 </tr>
76 </tbody>
77</table>
78
79
80</div>
81<div class="footer">
82 <span class="right"><a href="@jacoco.home.url@">JaCoCo</a> @qualified.bundle.version@</span>
83 <a href="license.html">Copyright</a> &copy; @copyright.years@ Mountainminds GmbH &amp; Co. KG and Contributors
84</div>
85
86</body>
87</html>