Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 99441 invoked from network); 19 Jul 2010 15:41:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jul 2010 15:41:04 -0000 Received: (qmail 97737 invoked by uid 500); 19 Jul 2010 15:41:03 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 97646 invoked by uid 500); 19 Jul 2010 15:41:03 -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 97638 invoked by uid 99); 19 Jul 2010 15:41:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 15:41:02 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.161.45] (HELO mail-fx0-f45.google.com) (209.85.161.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 15:40:55 +0000 Received: by fxm5 with SMTP id 5so2502208fxm.4 for ; Mon, 19 Jul 2010 08:39:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.160.19 with SMTP id a19mr365009hbd.56.1279553975280; Mon, 19 Jul 2010 08:39:35 -0700 (PDT) Received: by 10.239.180.3 with HTTP; Mon, 19 Jul 2010 08:39:35 -0700 (PDT) X-Originating-IP: [192.39.51.78] In-Reply-To: <005701cb2754$05872470$10956d50$@org> References: <005701cb2754$05872470$10956d50$@org> Date: Mon, 19 Jul 2010 16:39:35 +0100 Message-ID: Subject: Re: [Newbie] Nice way of concatenating files From: Matthew Jaggard To: Ant Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I saw this but couldn't work out how to apply it to a selection of files as my script does. It needs to look for all scripts labeled *.html.part and concatenate header.html, the file and then footer.html to create *.html. For example for the following directory... /web: index.html.part page1.html.part I need to create index.html from header.html + index.html.part + footer.html and page1.html from header.html + page1.html.part + footer.html Thanks, Mat. On 19 July 2010 16:06, Jonathan Rosenberg wrote: > Ant's task is what you want: > > =A0 =A0 =A0 =A0http://ant.apache.org/manual/index.html > > -- > Jonathan Rosenberg > Founder & Executive Director, Tabby's Place > http://www.tabbysplace.org/ > > > -----Original Message----- > From: matthew@jaggard.org.uk [mailto:matthew@jaggard.org.uk] On Behalf Of > Matthew Jaggard > Sent: Monday, July 19, 2010 11:00 AM > To: user > Subject: [Newbie] Nice way of concatenating files > > Hi, > =A0 Sorry for the newbie question. I have written a task to concatenate > files but want to do it better (in a more platform independent way) as > it currently relies on "cat" being an available executable. Can anyone > tell me how to do this using the task or anything? > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 includes=3D"*.html.part" excludes=3D"" /> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from=3D"*.html.part" > to=3D"${build.web.dir}/*.html"/> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > > > Many thanks, > Mat. > > --------------------------------------------------------------------- > 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