简体   繁体   English

是否可以使用带有Grails的proguard

[英]Is it possible to use proguard with Grails

即使不可能将proguard用于整个grails应用程序,是否可以将它用于src / java文件夹?

I don't know either Proguard or Grails in depth, but I do know that: 我不深入了解Proguard或Grails,但我知道:

  1. Grails uses Groovy Grails使用Groovy
  2. Groovy compiles down to bytecode Groovy编译为字节码
  3. Proguard operates on bytecode (not source code) Proguard 运行字节码 (不是源代码)

Thus my intuition is yes, ProGuard can shrink/obfuscate grails apps. 因此我的直觉是肯定的,ProGuard可以收缩/混淆grails应用程序。 Your question asks about using ProGuard on the src/java folder. 您的问题询问在src / java文件夹中使用ProGuard。 It's important to understand that ProGuard operates on .class files, not .java files. 重要的是要了解ProGuard对.class文件进行操作,而不是.java文件。 A correct configuration will need to operate on your bin directory, not src. 正确的配置需要在bin目录上运行,而不是src。 Unfortunately I'm not qualified to give you a detailed example configuration, but I hope this gets you on the right path. 不幸的是,我没有资格为您提供详细的示例配置,但我希望这能让您走上正确的道路。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM