Ant 从源代码编译Groovy时遇到的问题

Ant 从源代码编译Groovy时遇到的问题,ant,groovy,build-process,Ant,Groovy,Build Process,我试图使用Ant1.7.1从源代码处编译最新的Groovy发行版。这个过程一直平稳地运行,直到“-createEmbeddedablejar:”,在这个过程中,它没有说 构建失败 myHomeDir/groovy-src-1.6.0/groovy-1.6.0/build.xml:582:该类型不支持 嵌套的“globmapper”元素 从第582行生成xml如下所示: <unzip dest="${stagingDirectory}"> <patterns

我试图使用Ant1.7.1从源代码处编译最新的Groovy发行版。这个过程一直平稳地运行,直到“-createEmbeddedablejar:”,在这个过程中,它没有说

构建失败 myHomeDir/groovy-src-1.6.0/groovy-1.6.0/build.xml:582:该类型不支持 嵌套的“globmapper”元素

从第582行生成xml如下所示:

   <unzip dest="${stagingDirectory}">
        <patternset>
            <!-- no need for the manifest file, we have our own -->
            <exclude name="META-INF/MANIFEST.MF"/>
        </patternset>
        <globmapper from="META-INF/LICENSE.txt" to="META-INF/CLI-LICENSE.txt"/>
        <fileset dir="${runtimeLibDirectory}">
            <include name="commons-cli-*.jar"/>
        </fileset>
    </unzip>


你知道这里出了什么问题吗

看起来“解压”任务没有识别“全局映射器”。文档确实表示它支持此处的嵌套“映射器”:

该任务可能专门查找具有该名称的映射器元素。您可以尝试使用mapper父元素执行相同的操作

<mapper>
  <globmapper from="META-INF/LICENSE.txt" to="META-INF/CLI-LICENSE.txt"/>
</mapper>


关于映射程序的更多信息可以在这里找到:

事实证明,问题出在ant上,出于某种原因,ant发现了它自己的一个旧版本,并试图用它来编译。将类路径设置为。解决了这个问题