Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 69611 invoked from network); 25 Sep 2000 11:49:30 -0000 Received: from prometheus.spm.de (HELO mail.spm.de) (62.96.197.7) by locus.apache.org with SMTP; 25 Sep 2000 11:49:30 -0000 Received: (qmail 7955 invoked from network); 25 Sep 2000 11:48:59 -0000 Received: from unknown (HELO prometheus.spm.de) (192.168.30.7) by 192.168.30.4 with SMTP; 25 Sep 2000 11:48:59 -0000 Received: by prometheus.spm.de with Internet Mail Service (5.5.2650.21) id ; Mon, 25 Sep 2000 13:49:59 +0100 Message-ID: From: Javier Keller To: "'ant-user@jakarta.apache.org'" Subject: AW: Copying and renaming Date: Mon, 25 Sep 2000 13:49:49 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N You could use filters, for example:=20 will copy recursively all the files from the src.dir directory into the = dest.dir directory replacing all the occurencies of the string @abc@ = with 123. But then your files should be named in the form: *_@abc@.txt... Hope it helps. =20 > -----Urspr=FCngliche Nachricht----- > Von: Akbar Ibrahim [mailto:akbar.ibrahim@wipro.com] > Gesendet am: Montag, 25. September 2000 12:36 > An: ant-user@jakarta.apache.org > Betreff: Copying and renaming=20 >=20 > Hi, >=20 > I would like to copy files and rename them at the same time. >=20 > For example, I want to copy all *_abc.txt files (from a src=20 > directory tree) > to *_123.txt files (in a dest directory tree). ie >=20 > src/f_abc.txt -> dest/f_123.txt > src/dir/g_abc.txt -> dest/dir/g_123.txt > ... >=20 > I looked at the copy, copydir and rename tasks but could not=20 > find out any > way of doing this. >=20 > Is this possible ? I have ant 1.1 (compiled on July 18 2000) >=20 > Cheers, > Akbar >=20 >=20 >=20 >=20