本文介绍了打开Proguard的开/关使用属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的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.

这篇关于打开Proguard的开/关使用属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 16:46