我使用google插件为eclipse部署我的GWT应用程序,它运行良好,直到现在,部署操作首先用“混淆”输出样式编译我的GWT项目,现在我希望它改为“漂亮”,因为我必须调试客户端在运行中,我只是看不到混淆的堆栈。
感谢。
答案 0 :(得分:10)
编译器级别是GWT编译器选项的一部分:
-style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF)
如果您使用的是Ant:
修改build.xml文件:
<arg value="-style"/>
<arg value="pretty"/>
如果你正在使用Maven:
修改你的pom.xml文件:
<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>
答案 1 :(得分:3)
解决方案很简单,首先打开“GWT编译”对话框,选择详细或漂亮,单击应用,关闭对话框,然后将部署详细或漂亮样式。