ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Meakin" <>
Subject RE: move dir if available
Date Thu, 15 Aug 2002 14:38:50 GMT
Well as a bit of a hack you can move a null directory.
That is

<move todir="">
  <fileset dir=""/>

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.


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

View raw message