Antenna WtkPackage 生成重复的 MANIFEST.MF 文件
天线遇到了一个奇怪的问题 - 我最近换了一台新笔记本电脑,现在当我将构建设置复制到它时,它开始表现出奇怪的行为。当我调用 wtkpackage 时(在具有完全相同相同代码库的旧笔记本电脑上运行良好的方式),生成的 JAR 文件包含两个 META-INF/MANIFEST.MF文件(是的,完全相同的文件路径)。它们似乎具有相同的内容,并且从命令行解压缩工具 (unzip -l myscrewedup.jar) 的输出来看,一个出现在文件的开头,一个出现在文件的末尾。我尝试将重复值=“失败”属性添加到包命令中,但没有任何乐趣。
还有其他人遇到过这种情况吗?如果是这样,您找到解决方案了吗?
Got a strange problem with Antenna - I've recently switched over to a new laptop, and now when I copied my build setup across to it it started exhibiting strange behaviour. When I call wtkpackage (in a way that worked perfectly fine on the old laptop with exactly the same codebase), the generated JAR file contains two META-INF/MANIFEST.MF files (yes, exactly the same file path). These seem to have the same contents, and from the output from the command-line unzip tool (unzip -l myscrewedup.jar) one appears at the start of the file, one at the end. I've tried adding the duplicates="fail" attribute to the package command, but with no joy.
Has anyone else encountered this? If so, did you find a solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最好回答这个问题,以防其他人确实遇到同样的问题。问题在于我在新笔记本电脑上使用的 Ubunutu 11.04 设置 - 由于某些无法解释的原因,jar 命令链接到了 fastjar,这是 jar 的 C 实现,显然无法正常工作。将其切换到标准 Sun 实现后,问题立即得到解决。
Better answer this one in case anyone else does encounter the same problem. The problem was with the Ubunutu 11.04 setup I was using on the new laptop - for some inexplicable reason, the jar command was linked to fastjar, a C implementation of jar which evidently doesn't work properly. Switching this over to the standard Sun implementation fixed the problem immediately.