ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: Moving a set of directories.
Date Wed, 14 Aug 2002 00:18:48 GMT

to Move a set of files to a new directory

  <move todir="some/new/dir" >     //the exact target directory
    <fileset dir="my/src/dir" >    //the exact src directory
      <include name="**/*.jar"/>   //include these files
      <exclude name="**/ant.jar"/> //exclude these files

Keep us apprised,

>From: Joyce Li <>
>Reply-To: "Ant Users List" <>
>To: Ant Users List <>
>Subject: Moving a set of directories.
>Date: Tue, 13 Aug 2002 16:50:07 -0400
>MIME-Version: 1.0
>Received: from ([]) by 
> with Microsoft SMTPSVC(5.0.2195.4905); Tue, 13 
>Aug 2002 13:51:44 -0700
>Received: (qmail 11154 invoked by uid 97); 13 Aug 2002 20:51:56 -0000
>Received: (qmail 11141 invoked by uid 98); 13 Aug 2002 20:51:56 -0000
>Mailing-List: contact; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: <>
>List-Subscribe: <>
>List-Help: <>
>List-Post: <>
>List-Id: "Ant Users List" <>
>Delivered-To: mailing list
>X-Antivirus: nagoya (v4198 created Apr 24 2002)
>Message-ID: <>
>Organization: DWL Inc.
>X-Mailer: Mozilla 4.7 [en] (WinNT; I)
>X-Accept-Language: en
>X-Spam-Rating: 1.6.2 0/1000/N
>X-OriginalArrivalTime: 13 Aug 2002 20:51:44.0787 (UTC) 
>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
>and I'd like to move dir1 and dir2 to a new location B so I can have
>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>
>Why aren't dir1 and dir2 removed from A?
>Please help.
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

Martin Gainty

Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official 
business of Laconia Data Systems (LDS) is proprietary to the company. It is 
confidential, legally privileged and protected by law. LDS does not own and 
endorse any other content. Views and opinions are those of the sender unless 
clearly stated as being that of LDS.
The person addressed in the e-mail is the sole authorised recipient. Please 
notify the sender immediately if it has unintentionally reached you and do 
not read, disclose or use the content in any way.
LDS can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or 

Join the world’s largest e-mail service with MSN Hotmail.

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

View raw message