aboutsummaryrefslogtreecommitdiff
path: root/website/templates/features
diff options
context:
space:
mode:
Diffstat (limited to 'website/templates/features')
-rw-r--r--website/templates/features/delombok.html13
1 files changed, 5 insertions, 8 deletions
diff --git a/website/templates/features/delombok.html b/website/templates/features/delombok.html
index 6f41fc46..56b02f7d 100644
--- a/website/templates/features/delombok.html
+++ b/website/templates/features/delombok.html
@@ -17,22 +17,19 @@
<p>
Delombok is included in <code>lombok.jar</code>. To use it, all you need to run on the command line is:
- <div class="snippet">
- <pre>java -jar lombok.jar delombok src -d src-delomboked</pre>
- </div><br />
+ <pre>java -jar lombok.jar delombok src -d src-delomboked</pre>
+ <br />
Which will duplicate the contents of the <code>src</code> directory into the <code>src-delomboked</code> directory, which will be created if it doesn't already exist, but delomboked of course. Delombok on the command line has a few more options; use the <code>--help</code> parameter to see more options.
</p><p>
To let delombok print the transformation result of a single java file directly to standard output, you can use:
- <div class="snippet">
- <pre>java -jar lombok.jar delombok -p MyJavaFile.java</pre>
- </div>
+ <pre>java -jar lombok.jar delombok -p MyJavaFile.java</pre>
</p>
<@f.main.h3 title="Running delombok in ant" />
<p>
<code>lombok.jar</code> includes an ant task which can apply delombok for you. For example, to create javadoc for your project, your <code>build.xml</code> file would look something like:
- <div class="snippet"><pre>&lt;target name="javadoc"&gt;
+ <pre>&lt;target name="javadoc"&gt;
&lt;taskdef classname="lombok.delombok.ant.Tasks$Delombok" classpath="lib/lombok.jar" name="delombok" /&gt;
&lt;mkdir dir="build/src-delomboked" /&gt;
<strong>&lt;delombok verbose="true" encoding="UTF-8" to="build/src-delomboked" from="src"&gt;</strong>
@@ -41,7 +38,7 @@
&lt;mkdir dir="build/api" /&gt;
&lt;javadoc sourcepath="build/src-delomboked" defaultexcludes="yes" destdir="build/api" /&gt;
&lt;/target&gt;</pre>
- </div><br />
+ <br />
Instead of a <code>from</code> attribute, you can also nest <code>&lt;fileset&gt;</code> nodes.
</p>