ant build - unzip 不支持嵌套的“cutdirsmapper";元素 [英] ant build - unzip doesnt support the nested "cutdirsmapper" element
问题描述
我对此完全陌生,非常需要您的帮助.我尝试使用ant"构建 git 发行版,但出现错误
I'm totally new to this and really need your help. i tried to build git distribution using "ant" and got an error
path~/build.xml: unzip 不支持嵌套的cutdirsmapper"元素
path~/build.xml: unzip doesn't support the nested "cutdirsmapper" element
我不知道如何解决这个问题.我的系统Centos"64位
i have no idea how to fix this. my system "Centos" 64bit
推荐答案
元素根据 文档,但您可能使用的是旧版 Ant(尝试使用 ant -version
命令看).您可以下载/使用较新版本的 Ant,如果您不熟悉 Ant 脚本,这可能是最简单的解决方案,或者您可以更改构建脚本以使用不同的映射器.例如,
、
或
可能会执行您想要的操作.
The <cutsdirmapper>
element was added in Ant 1.8.2 according to the documentation, but you are presumably using an older version of Ant (try the ant -version
command to see). You can download/use a newer version of Ant, which is probably your easiest solution if you're not familiar with Ant scripting, or you can change the build script to use a different mapper. For example, the <flatten>
, <glob>
, or <regexpmapper>
might do what you want.
这篇关于ant build - unzip 不支持嵌套的“cutdirsmapper";元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!