Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 24846 invoked from network); 29 Mar 2010 06:35:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Mar 2010 06:35:13 -0000 Received: (qmail 4448 invoked by uid 500); 29 Mar 2010 06:35:12 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4273 invoked by uid 500); 29 Mar 2010 06:35:12 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 4265 invoked by uid 99); 29 Mar 2010 06:35:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Mar 2010 06:35:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.154.176.138] (HELO icon040.icongmbh.de) (62.154.176.138) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Mar 2010 06:35:04 +0000 Received: from icsrv02.icongmbh.de (unknown [192.168.195.2]) by icon040.icongmbh.de (Postfix) with ESMTP id 7220F12249 for ; Mon, 29 Mar 2010 08:34:32 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: AW: AW: Rename a dir Date: Mon, 29 Mar 2010 08:34:31 +0200 Message-ID: <06080D44730F41428BAF2168FA8BDD80046EC569@icsrv02.icongmbh.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AW: Rename a dir thread-index: AcrM/VwLJjoA+iURR7W8QfNeYAAtiACC7v8g References: <06080D44730F41428BAF2168FA8BDD80046EC4C1@icsrv02.icongmbh.de> <6344D3A1F3677A429F994D643E17F84F600B665712@USCIMMBX001.net.plm.eds.com> <06080D44730F41428BAF2168FA8BDD80046EC51C@icsrv02.icongmbh.de> <4BACD9D10200000D000333E7@cetus.iona.mgtlimited.com> From: "Knuplesch, Juergen" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org Hello, I now wrote my own task "renamedir", because 1.I find the described syntax confusing (calling a dir a file will = confuse me again, when I have to analyze the code in a few months) 2.It does not seem to do what it should under windows XP 3.I inspected the source code of ANT 1.7.1 and it is not designed for a = simple renamedir, because if renamedir fails it does a real move, and I = rather want the build to fail in zhis case. 4.It is great to write ANT tasks, if I give me the time to do it (this = was not planned in my SCRUM)... Thanks anyway for your mails that show me, that the topic is really = complicated. Juergen --=20 J=FCrgen Knuplesch www.icongmbh.de icon Systemhaus GmbH Tel. +49 711 806098-275 Sophienstra=DFe 40 =20 D-70178 Stuttgart Fax. +49 711 806098-299 Gesch=E4ftsf=FChrer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121=20 -----Urspr=FCngliche Nachricht----- Von: Mike Stewart [mailto:MStewart@mgtplc.com]=20 Gesendet: Freitag, 26. M=E4rz 2010 16:59 An: Ant Users List Betreff: Re: AW: Rename a dir try: =20 Mike S. =20 =20 >>> "Knuplesch, Juergen" 26/03/2010 14:34 >>> Hello, I dont think so, because this will move the files inside the dir instead = of just rename the name of the dir. juergen=20 --=20 J=FCrgen Knuplesch =20 -----Urspr=FCngliche Nachricht----- Von: St. Denis, David [mailto:david.stdenis@siemens.com] Gesendet: Freitag, 26. M=E4rz 2010 15:26 An: Ant Users List Betreff: RE: Rename a dir Is this not what you are looking for? -----Original Message----- From: Knuplesch, Juergen [mailto:Juergen.Knuplesch@icongmbh.de] Sent: Friday, March 26, 2010 2:04 AM To: Ant Users List Subject: AW: Rename a dir Thanks Antoine, The ANT docu says: Since Ant 1.6.3, the file attribute may be used to move (rename) an = entire directory. If tofile denotes an existing file, or there is a = directory by the same name in todir, the action will fail.=20 So my code seems to be correct. I think todir will move the first dir inside the second dir and this is = not a rename. So the question remains: How to rename a dir with ANT 1.7.1 and Windows = XP?=20 Does anyone know? Maybe I have a look in the code.... Greetings Juergen --=20 J=FCrgen Knuplesch www.icongmbh.de icon Systemhaus GmbH Tel. +49 711 806098-275 Sophienstra=DFe 40 =20 D-70178 Stuttgart Fax. +49 711 806098-299 Gesch=E4ftsf=FChrer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121 -----Urspr=FCngliche Nachricht----- Von: Antoine Levy Lambert [mailto:antoine@gmx.de] Gesendet: Donnerstag, 25. M=E4rz 2010 18:58 An: Ant Users List Betreff: Re: Rename a dir try using the todir attribute instead of tofile. I am not sure what the = end result will be but this might be faster. Regards, Antoine Knuplesch, Juergen wrote: > Hello, > > I want to rename a dir and used the following: > > > > But this moved all the files inside dirbase2 to dirbase2.new: > [echo] finally message > [move] Moving 14406 files to ... > > I just want to rename the dirname! > > I use ANT with Windows XP and this is a network path. > > Is a way to do this in ANT? > > Greetings J=FCrgen > > =20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional = commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional = commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional = commands, e-mail: user-help@ant.apache.org -- This message has been scanned for viruses and dangerous content by = MailScanner, and is believed to be clean. Please consider the environment before printing this email ********************************************************************* This e-mail and any attachments are confidential. If it is not for you, please inform us and delete it immediately without disclosing, copying, or distributing it. If the content is not about the business of the MGt Group or its clients, then it is neither from nor sanctioned by the MGt Group. Use of this or any other MGt Group e-mail facility signifies consent to interception by the MGt Group. The views expressed in this email or any attachments may not reflect the views and opinions of the MGt Group. This message has been scanned for viruses and dangerous content by MailScanner, but the MGt Group accepts no liability for any damage caused by the transmission of any viruses. MGt plc is a public limited company registered in Scotland (SC175703) with its registered office at Cluny Court, John Smith Business Park, Kirkcaldy, Fife, KY2 6QJ. ********************************************************************** --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org