java - 如何防止 GWT 混淆代码/在哪里可以找到 GWT 编译器

标签 java javascript google-chrome gwt

我目前正在努力查找代码中的错误,在检查浏览器(FF 和 GC)上的元素后,我发现 Java 源代码被 GWT 混淆以提高解析速度。通过网上研究,我发现:

If you prefer not to have GWT obfuscate its output, then you can use the -style flag on the GWT Compiler. This flag has one of three possible values:

OBF (for obfuscated), the default
PRETTY, which makes the output readable to a human
DETAILED, which improves on PRETTY with even more detail (such as very verbose variable names)

我想知道在哪里可以找到 GWT 编译器。

最佳答案

GWT 没有独立的编译器可执行文件,它作为 GWT SDK 的一部分提供。下载 GWT SDK,然后从 SDK 目录中您可以调用 GWT 编译器。

检查此链接 - http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions

我突出显示了样式选项。 enter image description here

关于java - 如何防止 GWT 混淆代码/在哪里可以找到 GWT 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26022818/

相关文章:

java - 如何对 n 个散列图使用 java 8 合并函数

java - 使用 Java 将 "2010-02-15T20:05:28.000Z"转换为 GMT 格式

javascript - 将嵌套函数作为参数传递

javascript - react : Setinterval is not stopping even after clearing the timer using clearInterval

java - Dagger2 组件注入(inject)多个 Activity

Internet Explorer 中的 JavaScript 菜单下拉问题

javascript - Chrome 扩展 : Background Script Catch Network and HTTP Errors

google-chrome - 如何在“网络”选项卡中查看返回 303 重定向的 POST 请求的 POST 参数

javascript - 我试图让 jquery 在我的 chrome 扩展的 background.js 中工作,但它不起作用。为什么?

java - 动态更新时 JPanel 出现不需要的重画