ant을 쓸 때마다 불편함이 넘어온다

condition은 그 불편함의 예..

일반 언어처럼 쓸 수 있도록 하는 jar가 있는데. 그게 바로 ant-contrib 이다.
http://ant-contrib.sourceforge.net/


condition 이 이렇게 쉽게 바꿔 쓸 수 있다.


<if>
<equals arg1="${target}" arg2="windows" />
<then>
<antcall target="build-windows"/>
</then>
<else>
<antcall target="build-solaris"/>
</else>
</if>

그외에도 compile, cc, 통신 을 쉽게 쓸 수 있도록 지원한다.

더이상 지원하지 않지만, ant를 편하게 쓸 수 있어서. 강추!!
Posted by '김용환'
,