Added instructions for the GWT/Eclipse plugin.

This commit is contained in:
Reinier Zwitserloot committed 2018-10-08 15:51:10 +02:00
1 parent d91ba858f2
commit 3bb6f69a5b
1 file changed
+18
+18
View File
@@ -13,4 +13,22 @@ java <strong>-javaagent:lombok.jar=ECJ</strong> <em>(rest of arguments)</em>
Thanks to Stephen Haberman for figuring this out.
</p>
</@s.introduction>
<@s.section title="GWT plugin in Eclipse">
<p>
To use the GWT plugin in eclipse together with Lombok:<br />
Install lombok into eclipse as normal (start <code>lombok.jar</code> as an application).<br />
Download the JDT variant that GWT uses. This is the most recent org.eclipse.jdt.core_VERSION-CUSTOM-GWT jar found on the <a href="https://github.com/gwtproject/tools/tree/master/lib/eclipse">lib/eclipse section GWT's github page</a>. As of October 2018, that would be <a href="https://github.com/gwtproject/tools/raw/master/lib/eclipse/org.eclipse.jdt.core_3.13.50-CUSTOM-GWT-20171215.jar">org.eclipse.jdt.core_3.13.50-CUSTOM-GWT-20171215.jar</a>.<br />
Configure the 'GWT/Compile' option in the eclipse GWT plugin; in the advanced section, add the following VM arguments:<br />
<pre>-javaagent:/path/to/lombok.jar=ECJ
-Xbootclasspath/p:/path/to/lombok.jar:/path/to/org.eclipse.jdt.core_fromPreviousStep.jar</pre>
Where the colon should be replaced with a semicolon on windows.<br />
GWT Dev Mode needs a similar configuration: In the VM arguments section ('Arguments' tab), add:
<pre>-javaagent:/path/to/lombok.jar=ECJ</pre>
and in the 'Classpath' tab, add both lombok.jar and the org.eclipse.jdt.core file you downloaded.
</p>
<p>
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!
</p>
</@s.section>
</@s.scaffold>