#import "_setup.html" as s> <@s.scaffold title="GWT"> <@s.introduction>
GWT (Google Web Toolkit) is compatible with lombok.
Edit your proj-debug
and proj-compile
batch scripts to add the following VM arguments:
java -javaagent:lombok.jar=ECJ (rest of arguments)
Thanks to Stephen Haberman for figuring this out.
@s.introduction> <@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.jarWhere the colon should be replaced with a semicolon on windows.
-javaagent:/path/to/lombok.jar=ECJand 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!
@s.section> @s.scaffold>