I use google plugin for eclipse to deploy my GWT application, it works good until now, the deploy action first compiles my GWT project with "obfuscated" output style, now i want it change to "Pretty" because i have to debug the client side on the fly, i just can't see the obfuscated stack.
Thanks.
Install from the Eclipse MarketplaceGo to the Eclipse Market Place and search for GWT . First goto the Eclipse Market Place. Then Search for GWT and install the features. Then Choose all the features you want to install.
Compiler level is part of the GWT compiler options :
-style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF)
If you're using Ant :
modify your build.xml file :
<arg value="-style"/>
<arg value="pretty"/>
If you're using Maven :
modify your pom.xml file :
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<style>PRETTY</style>
<!-- OTHER STUFF -->
</configuration>
</plugin>
The solution is simple, first open "GWT compile" dialog, select Detailed or Pretty, click apply, close the dialog, then it will be deployed with Detailed or Pretty style.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With