From levylambert@tiscali-dsl.de Mon Jun 2 07:44:15 2003 Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 10152 invoked from network); 2 Jun 2003 07:44:15 -0000 Received: from relay1.tiscali.de (HELO webmail.tiscali.de) (62.27.55.1) by daedalus.apache.org with SMTP; 2 Jun 2003 07:44:15 -0000 Received: from DJ0X820J (80.128.226.209) by webmail.tiscali.de (6.7.008) id 3EC9EF8F000F3C03 for user@ant.apache.org; Mon, 2 Jun 2003 09:33:23 +0200 Message-ID: <004f01c328da$e5ffe440$030200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Users List" References: <5.2.0.9.2.20030601104757.02635710@cismail.creativeis.com> Subject: Re: how to glob copy from sample.file.txt to an empty file.txt? Date: Mon, 2 Jun 2003 09:45:12 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N One solution would be that you nest a filterchain in your copy operation, and that you write a custom filter which would be producing no output at all, thus generating an empty file. Antoine ----- Original Message ----- From: "Jacob Kjome" To: Sent: Sunday, June 01, 2003 5:56 PM Subject: how to glob copy from sample.file.txt to an empty file.txt? > > I currently have a glob copy that looks like this... > > > > > > > > > > > That copies any sample.* to * if, and only if, * does not already exist. > > What I'd like to do for certain files is empty the contents of the file > when sample.* is copied to *. Basically, I want an empty * file that > corresponds to the, full of content, sample.* file. Is there any way to > do that? I can't seem to think of one without resorting to scripting? > > Jake > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > >