打开Proguard的开/关使用属性属性、Proguard

由网友(fireworks)分享简介:在我的project.properties文件有一个属性proguard.config,当我运行蚂蚁它将运行ProGuard的。下面的一切会造成ProGuard的运行In my project.properties file there is a property proguard.config and when i...

在我的project.properties文件有一个属性proguard.config,当我运行蚂蚁它将运行ProGuard的。下面的一切会造成ProGuard的运行

In my project.properties file there is a property proguard.config and when i run ant it will run proguard. All of the following will cause proguard to run

 proguard.config
 proguard.config=
 proguard.config=proguard.cfg

有一个属性文件中开启的ProGuard的方式/关?

Is there a way within the properties file to turn proguard on/off?

否则我将需要编写一个脚本来添加/删除或重命名proguard.config属性来控制这一点。我宁愿只获取/设置属性。我想我们的最佳解决方案。现在,我的编码replaceregexpr重命名proguard.config别的东西关掉。寻找一个更好的解决方案,并想知道别人是怎么控制的?

Otherwise I am going to need to write a script to add/remove or rename the proguard.config property to control this. I would rather just get/set properties. I want the best solution for this. Right now I am coding replaceregexpr to rename the proguard.config to something else to turn off. Looking for a better solution and would like to know how others are controlling this?

推荐答案

很多简单的方法是只具有行

A lot simpler way is to just have the line

#proguard.config=proguard.cfg

甚至更好的是离开它干脆!这样的ProGuard不会运行的。

or even better still leave it out altogether! That way proguard doesn't run at all.

阅读全文

相关推荐

最新文章