Это то, что я пытаюсь сделать:Попытки сделать эту цель условного
<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.
Я действительно нужен помогите здесь. Я был бы очень признателен за это
Следующий ответ показывает, как установить недостающий 3rd зависимость партии: http://stackoverflow.com/questions/34351322/there-isnt-antlib-xml-in-my- ant-contrib-0-3/34361910 # 34361910 –