ant/Jenkins:移动不支持“安静"属性 [英] ant/Jenkins: move doesn't support the "quiet" attribute

查看:25
本文介绍了ant/Jenkins:移动不支持“安静"属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的构建脚本执行:

<move todir="gen" overwrite="true" quiet="true">
        <fileset dir="gen">
            <include name="**/BuildConfig.java.new"/>
        </fileset>
        <globmapper from="*.java.new" to="*.java"/>
</move>

我收到错误:

move doesn't support the "quiet" attribute

我的 iMac 上安装了 ant 1.8.4.我在 Jenkins 中的 ant 插件是 1.2.詹金斯版.1.505.我尝试在启动 Jenkins 时更改 PATH,因此它包含我的命令行 ant.但是Jenkins似乎不支持ant 1.8.3?ant 1.8.3 是加入了move quiet 的版本.

I have ant 1.8.4 installed on my iMac. My ant plugin in Jenkins is 1.2. Jenkins ver. 1.505. I have tried to change the PATH when starting Jenkins, so it includes my command line ant. However it seems that Jenkins does not support ant 1.8.3? ant 1.8.3 is the version where the "move quiet" was added.

有什么想法可以解决这个问题吗?它与命令行 ant 或插件 ant 或我的构建脚本有关吗?谢谢!

Any thoughts how I can solve this? Is it related to command line ant or plugin ant or my build script? Thanks!

推荐答案

我通过以下方式解决了:

I solved it by:

  1. 在 Jenkins 设置中,为 ant 设置工具位置
  2. 现在在我的构建工作中出现了一个新选择:Ant Version

我的 mac 上的蚂蚁:

My ant on my mac:

ant -v
Apache Ant(TM) version 1.8.4 compiled on May 22 2012

这篇关于ant/Jenkins:移动不支持“安静"属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆