--- [EMAIL PROTECTED] wrote:
> Thanks a lot Diane. The logic you provided worked. I am using 1.4.1 and
> soon will migrate to 1.5 Alpha.
> To give an idea of what I am doing is
> [snip]
Eeeesh. I'd definitely recommend going with the <foreach> and <if> tasks
as soon as you upgrade to 1.5 so you can shrink all that down to:
<target name="copyfiles">
<foreach list="${COMP_TM.JAR},${COMP_PAY.JAR},${COMP_USER.JAR},..."
target="docopy" param="file"/>
</target>
<target name="docopy">
<available property="isAvailable" file="${file}"/>
<if>
<istrue value="${isAvailable}"/>
<then>
<copy file="${file}" todir="${CODE_BASE}../"/>
</then>
</if>
</target>
Diane
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>