From 3bb6f69a5b03ac3181f5bd6a04050ba339c7642e Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 8 Oct 2018 15:51:10 +0200 Subject: Added instructions for the GWT/Eclipse plugin. --- website/templates/setup/gwt.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'website') diff --git a/website/templates/setup/gwt.html b/website/templates/setup/gwt.html index 142362ac..ac6659a5 100644 --- a/website/templates/setup/gwt.html +++ b/website/templates/setup/gwt.html @@ -13,4 +13,22 @@ java -javaagent:lombok.jar=ECJ (rest of arguments) Thanks to Stephen Haberman for figuring this out.

+ + <@s.section title="GWT plugin in Eclipse"> +

+ To use the GWT plugin in eclipse together with Lombok:
+ Install lombok into eclipse as normal (start lombok.jar as an application).
+ Download the JDT variant that GWT uses. This is the most recent org.eclipse.jdt.core_VERSION-CUSTOM-GWT jar found on the lib/eclipse section GWT's github page. As of October 2018, that would be org.eclipse.jdt.core_3.13.50-CUSTOM-GWT-20171215.jar.
+ Configure the 'GWT/Compile' option in the eclipse GWT plugin; in the advanced section, add the following VM arguments:
+

-javaagent:/path/to/lombok.jar=ECJ
+-Xbootclasspath/p:/path/to/lombok.jar:/path/to/org.eclipse.jdt.core_fromPreviousStep.jar
+Where the colon should be replaced with a semicolon on windows.
+ GWT Dev Mode needs a similar configuration: In the VM arguments section ('Arguments' tab), add: +
-javaagent:/path/to/lombok.jar=ECJ
+ and in the 'Classpath' tab, add both lombok.jar and the org.eclipse.jdt.core file you downloaded. +

+

+ The above instructions are contributed by Stas via the forum. Let us know if they work, or if you run into issues. Thanks and have fun! +

+ -- cgit