diff options
Diffstat (limited to 'website')
-rw-r--r-- | website/templates/features/delombok.html | 13 |
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><target name="javadoc"> + <pre><target name="javadoc"> <taskdef classname="lombok.delombok.ant.Tasks$Delombok" classpath="lib/lombok.jar" name="delombok" /> <mkdir dir="build/src-delomboked" /> <strong><delombok verbose="true" encoding="UTF-8" to="build/src-delomboked" from="src"></strong> @@ -41,7 +38,7 @@ <mkdir dir="build/api" /> <javadoc sourcepath="build/src-delomboked" defaultexcludes="yes" destdir="build/api" /> </target></pre> - </div><br /> + <br /> Instead of a <code>from</code> attribute, you can also nest <code><fileset></code> nodes. </p> |