From f3881e51dada4fcc9f01174821427b9a14a60b4a Mon Sep 17 00:00:00 2001
From: Roel Spilker
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>-
from attribute, you can also nest <fileset> nodes.
--
cgit