ant/Jenkins: move doesn't support the “quiet” attribute

走远了吗. 提交于 2019-12-31 06:36:25

问题


My build script executes:

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

I get the error:

move doesn't support the "quiet" attribute

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.

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


回答1:


Assuming that you're running Jenkins on your iMac, go to [http://yourjenkins/configure] and add an Ant installation that points to your Ant 1.8.4 directory. Then, in the Ant build step of your Jenkins job configuration, specify that version of Ant and things should start working.

If your Jenkins server is on a different machine, repeat the instructions but install Ant 1.8.4 on the Jenkins server, or use the "Install automatically" option to install Ant on demand.




回答2:


I solved it by:

  1. In Jenkins setup, set a tool location for ant

  2. Now in my build job a new selection appeared: Ant Version

My ant on my mac:

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


来源:https://stackoverflow.com/questions/15393890/ant-jenkins-move-doesnt-support-the-quiet-attribute

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!