How can I obfuscate Java source code for external GWT development?

社会主义新天地 提交于 2019-12-06 05:52:39

Nothing appears to be available for this TODAY:

  1. There are very few tools that work on Java source code obfuscation to begin with.
  2. Some of these are either not free or are not Java based.
  3. Source code (formatting) tools that remain are not customizable enough to remove all the comments but leave the GWT "JSNI" code in (GWT's way of embedding JavaScript code into Java within special /*-{ ... }-*/ style comments of "native" methods.

In the end, I wrote a simple bit of code myself that only takes out all the whitespace but leaves the JSNI code in and untouched. It does not obfuscate method variables or anything else but it will have to do for now.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!