From f3881e51dada4fcc9f01174821427b9a14a60b4a Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 11 Sep 2018 00:45:24 +0200 Subject: layout delombok page --- website/templates/features/delombok.html | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'website/templates/features/delombok.html') 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 @@

Delombok is included in lombok.jar. To use it, all you need to run on the command line is: -

-
java -jar lombok.jar delombok src -d src-delomboked
-

+
java -jar lombok.jar delombok src -d src-delomboked
+
Which will duplicate the contents of the src directory into the src-delomboked 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 --help parameter to see more options.

To let delombok print the transformation result of a single java file directly to standard output, you can use: -

-
java -jar lombok.jar delombok -p MyJavaFile.java
-
+
java -jar lombok.jar delombok -p MyJavaFile.java

<@f.main.h3 title="Running delombok in ant" />

lombok.jar includes an ant task which can apply delombok for you. For example, to create javadoc for your project, your build.xml file would look something like: -

<target name="javadoc">
+			
<target name="javadoc">
 <taskdef classname="lombok.delombok.ant.Tasks$Delombok" classpath="lib/lombok.jar" name="delombok" />
 <mkdir dir="build/src-delomboked" />
 <delombok verbose="true" encoding="UTF-8" to="build/src-delomboked" from="src">
@@ -41,7 +38,7 @@
 <mkdir dir="build/api" />
 <javadoc sourcepath="build/src-delomboked" defaultexcludes="yes" destdir="build/api" />
 </target>
-

+
Instead of a from attribute, you can also nest <fileset> nodes.

-- cgit