1
조건이 목표를 만들려고 노력 :이 내가 할 노력하고있어입니다
<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.
정말 필요를 여기에서 도와주세요. 정말 고마워요
다음 대답은 누락 된 제 3 자 의존성을 설치하는 방법을 보여줍니다 : http://stackoverflow.com/questions/34351322/there-isnt-antlib-xml-in-my- 예를 들어
ant-contrib-0-3/34361910 # 34361910 –