これは私がやろうとしているものです:このターゲットを条件付きにしようとすると
<target name="example">
<if>
<equals arg1="${var}" arg2="true" />
<then>
<exec executable="/bin/bash">
<arg value="script.sh" />
</exec>
</then>
</if>
</target>
そして、私はアリの例でターゲットを実行するとき、私はこのエラーを取得:
Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
私は本当に必要ここで助けてください。私は本当にそれを感謝します
以下の答えが不足しているサードパーティの依存関係をインストールする方法を示します:http://stackoverflow.com/questions/34351322/there-isnt-antlib-xml-in-my-などについては
ant-contrib-0-3/34361910#34361910 –