From bb85d799b3ba549c8a29afab0b246cb13b10507a Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 6 Jan 2017 01:20:48 +0100 Subject: setup pages added. --- website2/templates/setup/ecj.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 website2/templates/setup/ecj.html (limited to 'website2/templates/setup/ecj.html') diff --git a/website2/templates/setup/ecj.html b/website2/templates/setup/ecj.html new file mode 100644 index 00000000..9d56a085 --- /dev/null +++ b/website2/templates/setup/ecj.html @@ -0,0 +1,31 @@ +<#import "_setup.html" as s> + +<@s.scaffold title="ecj"> + <@s.introduction> +

+ ecj (the eclipse standalone compiler) is compatible with lombok. Use the following command line to enable lombok with ecj: +

java -javaagent:lombok.jar=ECJ -jar ecj.jar -cp lombok.jar -source 1.8 (rest of arguments)
+

+ You may have to add the following VM argument, if you're using an older version of lombok or java: +

-Xbootclasspath/p:lombok.jar
+

+ If you're using a tool based on ecj, adding these VM arguments and adding lombok.jar to the classpath should work. +

+ + + <@s.section title="Maven"> +

+ It is possible to configure maven-compiler-plugin with maven-dependency-plugin and plexus-compiler-eclipse. +

+ Before the compile phase, you will have to set your MAVEN_OPTS environment variable to include the javaagent argument. In the example below, target is your ${r"${project.build.directory}"}. +

+ Use the following commands in sequence to enable lombok with ecj in your Maven build: +

+mvn clean dependency:copy@get-lombok
+set MAVEN_OPTS=-javaagent:target/lombok.jar=ECJ (or your OS's equivalent)
+mvn install
+set MAVEN_OPTS= (or your OS's equivalent)
+
+

+ + -- cgit