ant-user mailing list archives

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

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
    </fileset>
  </move>

Keep us apprised,
-Martin

>From: Joyce Li <jli@dwl.com>
>Reply-To: "Ant Users List" <ant-user@jakarta.apache.org>
>To: Ant Users List <ant-user@jakarta.apache.org>
>Subject: Moving a set of directories.
>Date: Tue, 13 Aug 2002 16:50:07 -0400
>MIME-Version: 1.0
>Received: from nagoya.betaversion.org ([192.18.49.131]) by 
>mc1-f28.law16.hotmail.com 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 ant-user-help@jakarta.apache.org; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: <mailto:ant-user-unsubscribe@jakarta.apache.org>
>List-Subscribe: <mailto:ant-user-subscribe@jakarta.apache.org>
>List-Help: <mailto:ant-user-help@jakarta.apache.org>
>List-Post: <mailto:ant-user@jakarta.apache.org>
>List-Id: "Ant Users List" <ant-user.jakarta.apache.org>
>Delivered-To: mailing list ant-user@jakarta.apache.org
>X-Antivirus: nagoya (v4198 created Apr 24 2002)
>Message-ID: <3D5970FF.39258D78@dwl.com>
>Organization: DWL Inc.
>X-Mailer: Mozilla 4.7 [en] (WinNT; I)
>X-Accept-Language: en
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>Return-Path: ant-user-return-23850-mgainty=hotmail.com@jakarta.apache.org
>X-OriginalArrivalTime: 13 Aug 2002 20:51:44.0787 (UTC) 
>FILETIME=[3BDD8630:01C2430B]
>
>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>


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 
interference.
             _______________________________________________:


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
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