我目前正在努力查找代码中的错误,在检查浏览器(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
我突出显示了样式选项。
关于java - 如何防止 GWT 混淆代码/在哪里可以找到 GWT 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26022818/