From Jan.Materne@rzf.fin-nrw.de Tue Apr 1 11:50:05 2003 Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 32376 invoked from network); 1 Apr 2003 11:50:05 -0000 Received: from dnsinet.rzf-nrw.de (193.109.238.66) by daedalus.apache.org with SMTP; 1 Apr 2003 11:50:05 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.9/8.12.9) with ESMTP id h31Bo1Z7019740 for ; Tue, 1 Apr 2003 13:50:01 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2653.19) id ; Tue, 1 Apr 2003 13:50:03 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF673A@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: AW: Copy file or dir and changing name? Date: Tue, 1 Apr 2003 13:50:03 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2F844.D4E83ED0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C2F844.D4E83ED0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I wrote a little test: The "copy"-Target does the differentiation of file and directory. That buildfile does what you want - besides: file1.txt is copied to file1.txt_20030401_1345 in = my test. Jan Mat=E8rne > -----Urspr=FCngliche Nachricht----- > Von: Stefan Bodewig [mailto:bodewig@apache.org] > Gesendet am: Dienstag, 1. April 2003 13:44 > An: user@ant.apache.org > Betreff: Re: Copy file or dir and changing name? >=20 > On Tue, 1 Apr 2003, Leif Hanack wrote: >=20 > > The ant call should be s.th. like: > > $ant -f copy.xml -Dsource=3Dfile1.txt > > $ant -f copy.xml -Dsource=3Ddir2 >=20 > Can you use different targets for file and dir copies? It will make > things easier. >=20 > > So far i started with: >=20 > > > > >=20 > I'd rather use=20 >=20 > > > >=20 > but that's a matter of taste. >=20 > > >=20 > definitely regexp, glob is too limitied for what you want. >=20 > Stefan >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 ------_=_NextPart_001_01C2F844.D4E83ED0--