gpt4 book ai didi

ant - ProGuard Ant 任务的多个配置文件

转载 作者:行者123 更新时间:2023-12-05 01:29:16 41 4
gpt4 key购买 nike

我正在使用 ProGuard ant 任务,一切都很好,除了我的 ProGuard 配置文件很大。此外,不同的任务使用不同的 ProGuard 配置文件,并且有很多我想重构到单独的 .pro 文件中的复制粘贴。

<taskdef resource="proguard/ant/task.properties" classpath="C:/Program Files/proguard4.7/lib/proguard.jar"/>
<target name="obfuscated_jar" depends="raw_jar">
<proguard configuration="core.pro lib1.pro lib2.pro">
<outjar path="prog_obfuscated.jar"/>
</proguard>
</target>

以上不起作用,因为它将多个 .pro 文件视为一个大文件名。我是一个众所周知的白痴 w.r.t. Ant ,我错过了一些明显的东西吗?谢谢!

最佳答案

您可以创建一个包含指向实际 .pro 文件的 -include 选项的单个主 .pro 文件。

关于ant - ProGuard Ant 任务的多个配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10478220/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com