ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milind Nirgun" <Nirg...@C-IV.org>
Subject RE: Moving a set of directories.
Date Tue, 13 Aug 2002 22:17:13 GMT
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:jli@dwl.com]
> 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: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