check out the ant-contrib project on sourceforge

/t 

>-----Original Message-----
>From: Darryl L. Miles [mailto:[EMAIL PROTECTED] 
>Sent: Friday, September 09, 2005 11:23 AM
>To: [email protected]
>Subject: Condition operation based on existance of a file ?
>
>
>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}">
>      <patternset>
>        <include name="**/*"/>
>      </patternset>
>    </unzip>
>    <!-- ENDIF -->
>
>Thanks
>
>-- 
>Darryl L. Miles
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to