ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darryl L. Miles" <>
Subject Condition operation based on existance of a file ?
Date Fri, 09 Sep 2005 09:23:17 GMT

How can I instruct ANT to conditionally do something, like a regular 
if() statement.

Here is what I have so far (the unzip is my conditional operation):

  <available file="${toplevel.dir}/${Name}.jar" property="doMerge"/>
    <!-- IF doMerge -->
    <unzip src="${toplevel.dir}/${Name}.jar" dest="${dist.dir}">
        <include name="**/*"/>
    <!-- ENDIF -->


Darryl L. Miles

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message