Ant task for offline instrumentation.
diff --git a/org.jacoco.doc/docroot/doc/ant.html b/org.jacoco.doc/docroot/doc/ant.html
index 4da2fff..78cd89a 100644
--- a/org.jacoco.doc/docroot/doc/ant.html
+++ b/org.jacoco.doc/docroot/doc/ant.html
@@ -28,7 +28,10 @@
<a href="#agent"><code>agent</code></a>,
<a href="#dump"><code>dump</code></a> and
<a href="#merge"><code>merge</code></a>. Reports in different formats are
- creates with the <a href="#report"><code>report</code></a> task.
+ creates with the <a href="#report"><code>report</code></a> task. For
+ <a href="offline.html">offline instrumentation</a> the task
+ <a href="#instrument"><code>instrument</code></a> can be used to prepare class
+ files.
</p>
<p class="hint">
@@ -694,6 +697,43 @@
</tbody>
</table>
+
+<h2><a name="instrument">Task <code>instrument</code></a></h2>
+
+<p>
+ This task is used for <a href="offline.html">offline instrumentation</a> of
+ class files. The task takes a set of class files and writes instrumented
+ versions to a specified location.
+</p>
+
+<pre class="source lang-xml linenums">
+<jacoco:instrument destfile="target/classes-instr">
+ <fileset dir="target/classes" includes="**/*.class"/>
+</jacoco:instrument>
+</pre>
+
+<p>
+ The task definition can contain any number of resource collection types and
+ has the following mandatory attribute:
+</p>
+
+<table class="coverage">
+ <thead>
+ <tr>
+ <td>Attribute</td>
+ <td>Description</td>
+ <td>Default</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>destdir</code></td>
+ <td>Directory location to write the instrumented class files to.</td>
+ <td><i>none (required)</i></td>
+ </tr>
+ </tbody>
+</table>
+
</div>
<div class="footer">
<span class="right"><a href="@jacoco.home.url@">JaCoCo</a> @qualified.bundle.version@</span>