ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tibor Strausz <Tibor.Stra...@tridion.com>
Subject RE: move dir if available
Date Thu, 15 Aug 2002 14:52:04 GMT
ok like the hack :-)

genarly speaking is it posible to skip a part of a target when some property
is true or set or someting??

tibi

> -----Original Message-----
> From: Geoff Meakin [mailto:geoffm@isocra.com]
> Sent: Thursday, August 15, 2002 4:39 PM
> To: Ant Users List
> Subject: RE: move dir if available
> 
> 
> Well as a bit of a hack you can move a null directory.
> That is
> 
> <move todir="">
>   <fileset dir=""/>
> </move>
> 
> Which will do nothing (but it does attempt to self-referential move.
> 
> How does this help, you might ask?
> Well you can then use your <available> to define a property to be null
> if the dir doesnt exist, or the dir name if it does, and then
> apply this move task to it. This saves you doing another target.
> 
> Cheers
> -Geoff
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

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


Mime
View raw message