Joyce,

Are you running on Windows or Unix? On windows, your script moves dir1 & dir2 to B and 
deletes A, including dir3. The result after using the move operation in your script is 
:

B/dir1
B/dir2



> -----Original Message-----
> From: Joyce Li [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 13, 2002 1:50 PM
> To: Ant Users List
> Subject: Moving a set of directories.
> 
> 
> Hi,
> 
> I'm having some trouble moving a set of directories to a new location.
> The source location is not deleted after the move.
> 
> For example, I have
> 
> A/dir1
> A/dir2
> A/dir3
> 
> and I'd like to move dir1 and dir2 to a new location B so I can have
> 
> A/dir3
> B/dir1
> B/dir2
> 
> My build.xml segment is something like this:
> 
>         < move todir="${base.dir}/B">
>             <fileset dir="${base.dir}/A"
>                      defaultexcludes="no">
>                 <include name="dir1/**"/>
>                 <include name="dir2/**"/>
>             </fileset>
>         </move>
> 
> After the move operation, I have
> 
> A/dir1  <with only empty directories>
> A/dir2  <with only empty directories>
> A/dir3
> B/dir1
> B/dir2
> 
> Why aren't dir1 and dir2 removed from A?
> 
> Please help.
> 
> Thanks.
> Joyce
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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

Reply via email to