


For example, to create javadoc for your project, your build.xml file would look something like: Lombok.jar includes an ant task which can apply delombok for you. The -classpath, -sourcepath, and -module-path options of javac are replicated as -classpath, -sourcepath, and -module-path in delombok. Java -jar lombok.jar delombok -p MyJavaFile.java To let delombok print the transformation result of a single java file directly to standard output, you can use: Delombok on the command line has a few more options use the -help parameter to see more options. 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. Java -jar lombok.jar delombok src -d src-delomboked

To use it, all you need to run on the command line is: If delombok's formatting is not conforming to your preferred code style, have a look!ĭelombok is included in lombok.jar. A few such options are automatically scanned from input if possible (such as indent). Delombok still allows you to use lombok with these tools by preprocessing your java code into java code with all of lombok's transformations already applied.ĭelombok can of course also help understand what's happening with your source by letting you look at exactly what lombok is doing 'under the hood'.ĭelombok's standard mode of operation is that it copies an entire directory into another directory, recursively, skipping class files, and applying lombok transformations to any java source files it encounters.ĭelombok's output format can be configured with command line options (use -format-help for a complete list). For example, lombok cannot plug into javadoc, nor can it plug into the Google Widget Toolkit, both of which run on java sources. Normally, lombok adds support for all the lombok features directly to your IDE and compiler by plugging into them.
