wtkobfuscate参数问题

时间:2011-06-23 08:30:39

标签: eclipse ant proguard

我使用此代码构建了一个ant:

<wtkobfuscate jarfile="${dist}/${product.name}.jar"
      jadfile="${dist}/${product.name}.jad"
      verbose="true">
    <classpath>
       <path location="${wtk.home}/lib/j2me-xmlrpc.jar" />
       <!-- path location="${ploc.client}/lib/jarrut-runtime-0.2.jar" / -->
       <pathelement location="${out}/classes" />
    </classpath>
    <argument value=" -keep public class * extends javax.microedition.midlet.MIDlet " />
</wtkobfuscate>

使用eclipse-pulsar在Linux中编译此目标。 但是在使用equals配置的Windows上失败。

错误日志:

[wtkobfuscate] proguard.ParseException: Expecting class member name before '}' in argument number 6
[wtkobfuscate]  at proguard.ConfigurationParser.checkJavaIdentifier(ConfigurationParser.java:1116)
[wtkobfuscate]  at proguard.ConfigurationParser.parseMemberSpecificationArguments   (ConfigurationParser.java:812)
[wtkobfuscate]  at proguard.ConfigurationParser.parseClassSpecificationArguments(ConfigurationParser.java:640)
[wtkobfuscate]  at proguard.ConfigurationParser.parseKeepSpecificationArguments(ConfigurationParser.java:462)
[wtkobfuscate]  at proguard.ConfigurationParser.parse(ConfigurationParser.java:118)
[wtkobfuscate]  at proguard.ProGuard.main(ProGuard.java:491)

proguard版本是4.2

0 个答案:

没有答案