【发布时间】:2011-10-24 08:24:52
【问题描述】:
我的 build.xml 中有这个:
<target depends="build-jar" name="proguard">
<taskdef resource="proguard/ant/task.properties" classpath="tools/proguard4.6/lib/proguard.jar" />
<proguard configuration="ant/proguard.conf" />
</target>
效果很好。
在配置文件(即“ant/proguard.conf”)中,我尝试访问此 build.xml 文件中定义的属性,但总是遇到这种错误:
Value of system property 'jar.final_name' is undefined in '<jar.final_name>' in line 1 of file '.......\ant\proguard.conf'
错误很明显。问题是我如何做我想做的事?
如果我采用“嵌入式 ProGuard 配置选项”的方式,我可以像使用 build.xml 中的任何其他属性一样使用这些属性,但我试图将文件分开。
那我该怎么做呢?
【问题讨论】: