diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-09-11 00:45:24 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-09-11 00:45:24 +0200 |
commit | f3881e51dada4fcc9f01174821427b9a14a60b4a (patch) | |
tree | 0662bb0361bc673b337424d2a0c34a7f4d0b9ce9 /website/templates/features/delombok.html | |
parent | da7c7720a68d05713d641e701114bbf474296d40 (diff) | |
download | lombok-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.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> |