aboutsummaryrefslogtreecommitdiff
path: root/website/templates/features/delombok.html
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2018-09-11 00:45:24 +0200
committerRoel Spilker <r.spilker@gmail.com>2018-09-11 00:45:24 +0200
commitf3881e51dada4fcc9f01174821427b9a14a60b4a (patch)
tree0662bb0361bc673b337424d2a0c34a7f4d0b9ce9 /website/templates/features/delombok.html
parentda7c7720a68d05713d641e701114bbf474296d40 (diff)
downloadlombok-f3881e51dada4fcc9f01174821427b9a14a60b4a.tar.gz
lombok-f3881e51dada4fcc9f01174821427b9a14a60b4a.tar.bz2
lombok-f3881e51dada4fcc9f01174821427b9a14a60b4a.zip
layout delombok page
Diffstat (limited to 'website/templates/features/delombok.html')
-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>