You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by bh...@freddiemac.com on 2004/08/31 21:26:44 UTC
How to move a directory ?
this may sound a bit silly , but I am at my wits end.
I want to move a directory (and all its contents ) from one directory into
another directory
e.g.
Move dir1 (e.g. /src/dir1) into /dest/dest1. i.e. /dest/dest1/dir1
I have tried the following
<move todir="/dest/dest1" overwrite="true" >
<fileset dir="/src" includes="dir1/**/*" />
</move>
This does indeed create a /dest/dest1/dir1 with all the contents for dir1,
but it also leaves a empty /src/dir1, back
in the source. How do I get rid of this empty dir ? I don't want to add
another delete statement after the move statement.
I have also tried other stuff, none of which works. any clues ?
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org