ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Blaukopf <blauk...@netbeans.org>
Subject Re: ANT copy on condition
Date Tue, 09 Dec 2003 10:01:36 GMT
You can either put the copy operation in a separate target (the Ant way) 
or use the <if> task from ant-contrib.

<target name="copyFiles" if="myproperty">
    <copy .../>
</target>

Daniel

Matthew Oatham wrote:

> Hi,
>
> I was wondering if it is possible to combine the condition and copy 
> tasks to only perfor the copoy task if a property is set?
>
> i.e.
> if (property isset)  {
>  copy file
> }
>
> Cheers.
>
> Matt
>
> _________________________________________________________________
> On the move? Get Hotmail on your mobile phone 
> http://www.msn.co.uk/msnmobile
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message