Proguard with Ant:从文件夹中过滤特定的 jar 文件
我似乎找不到 Proguard 的正确语法来根据文件夹中的名称过滤出 jar 文件列表。
我有一个文件夹project/lib/,其中混合了第三方和专有的jar。我将该文件夹中的专有 jar 指定为 proguard 的输入 jar,以及 project/ 文件夹中的主程序 jar 文件。
我想告诉 proguard 在 project/lib/ 中查找库 jar 并过滤掉之前指定的专有 jar。
从Proguard的用法页面来看,我相信其语法是:
-injars project/main_jar.jar
-injars project/lib/proprietary_jar_1.jar(!META-INF/MANIFEST.MF)
-injars project/lib/proprietary_jar_2.jar(!META-INF/MANIFEST.MF)
-libraryjars project/lib/(!proprietary_jar_1.jar;,!proprietary_jar_2.jar;)
但是,上面给出了错误:
Expecting separating ',' or ';', or closing ')' before ';' in argument number 1
我应该如何指定 Proguard 来执行此操作?
谢谢。
I can't seem to find the proper syntax for Proguard to filter out a list of jar files based on their names from a folder.
I have a folder project/lib/ that has a mix of third-party and proprietary jars. I am specifying the proprietary jars in that folder as input jars to proguard, as well as the main program jar file in the project/ folder.
I would like to tell proguard to look in project/lib/ for library jars and filter out the previously specified proprietary jars.
From the Proguard usage page, I am lead to believe that the syntax for this is:
-injars project/main_jar.jar
-injars project/lib/proprietary_jar_1.jar(!META-INF/MANIFEST.MF)
-injars project/lib/proprietary_jar_2.jar(!META-INF/MANIFEST.MF)
-libraryjars project/lib/(!proprietary_jar_1.jar;,!proprietary_jar_2.jar;)
However, the above gives me the error:
Expecting separating ',' or ';', or closing ')' before ';' in argument number 1
How should I specify for Proguard to do this?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ProGuard手册>使用方法> 类路径
后面的 zip/ear/war/jar/file 过滤器列表是分开的用分号。这些列表中的各个条目以逗号分隔。在这种情况下:
ProGuard manual > Usage > Class paths
The subsequent zip/ear/war/jar/file filter lists are separated by semi-colons. The individual entries in those list are separated by commas. In this case: