Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 87608 invoked from network); 13 Jun 2007 07:31:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 07:31:55 -0000 Received: (qmail 84597 invoked by uid 500); 13 Jun 2007 07:31:56 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 83662 invoked by uid 500); 13 Jun 2007 07:31:54 -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 83651 invoked by uid 99); 13 Jun 2007 07:31:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 00:31:54 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [62.97.71.54] (HELO tall-sxxi.com) (62.97.71.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 00:31:49 -0700 Received: from [192.168.0.143] by tall-sxxi.com (MDaemon.PRO.v7.2.0.R) with ESMTP id md50000292088.msg for ; Wed, 13 Jun 2007 09:31:21 +0200 Message-ID: <466F9D47.2040602@iver.es> Date: Wed, 13 Jun 2007 09:31:19 +0200 From: Cesar Martinez Izquierdo User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: user@ant.apache.org Subject: Rename directories in Ant Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Processed: tall-sxxi.com, Wed, 13 Jun 2007 09:31:21 +0200 (not processed: message from valid local sender) X-MDRemoteIP: 192.168.0.143 X-Return-Path: cesar.martinez@iver.es X-MDaemon-Deliver-To: user@ant.apache.org X-MDAV-Processed: tall-sxxi.com, Wed, 13 Jun 2007 09:31:26 +0200 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm trying to rename every "search" directory in a tree to "search_", but I'm not able to find the right way to do it. For example, if I have the files: /tmp/myDir/test/hello/search/Hello.html /tmp/myDir/test/hello/search/nice/lists/search/Greetings.html /tmp/myDir/test/hello/searchstrings/Hello.html /tmp/myDir/search/Regards.html I want to rename them to: /tmp/myDir/test/hello/search_/Hello.html /tmp/myDir/test/hello/search_/nice/lists/search_/Greetings.html /tmp/myDir/test/hello/searchstrings/Hello.html /tmp/myDir/search_/Regards.html I've read the docs and searched in Google, but I didn't find the solution. I have tried the following: ------------------------------- ----------------------- But I get the results: /tmp/myDir/test/hello/search_/Hello.html /tmp/myDir/test/hello/search_/nice/lists [empty dir] /tmp/myDir/test/hello/search/nice/lists/search_/Greetings.html /tmp/myDir/test/hello/search_strings/Hello.html /tmp/myDir/search/Regards.html which is not the result I expected. Is there a way to perform this task? If it's possible, it would be very useful to include it in the documentation, as I've found in Google several people trying to do it, but none of them found the solution. Regards, -- C�sar Mart�nez Izquierdo Equipo de desarrollo gvSIG http://www.gvsig.gva.es IVER T.I. C/ Salamanca 50 46005 Valencia - Spain http://www.iver.es --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org