Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 4761 invoked from network); 19 Jul 2010 16:35:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jul 2010 16:35:28 -0000 Received: (qmail 59236 invoked by uid 500); 19 Jul 2010 16:28:07 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 59171 invoked by uid 500); 19 Jul 2010 16:28:07 -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 59157 invoked by uid 99); 19 Jul 2010 16:28:07 -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 16:28:07 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.64] (HELO qmta07.westchester.pa.mail.comcast.net) (76.96.62.64) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 16:27:59 +0000 Received: from omta09.westchester.pa.mail.comcast.net ([76.96.62.20]) by qmta07.westchester.pa.mail.comcast.net with comcast id jqZa1e0030SCNGk57sTexP; Mon, 19 Jul 2010 16:27:38 +0000 Received: from jr ([68.46.85.31]) by omta09.westchester.pa.mail.comcast.net with comcast id jsTe1e00Q0gZh8L3VsTeei; Mon, 19 Jul 2010 16:27:38 +0000 From: "Jonathan Rosenberg" To: "'Ant Users List'" References: <005701cb2754$05872470$10956d50$@org> In-Reply-To: Subject: RE: [Newbie] Nice way of concatenating files Date: Mon, 19 Jul 2010 12:29:03 -0400 Message-ID: <008401cb275f$801ef540$805cdfc0$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcsnWMz+3/zIibmfT8SSCfyN4p9LWQABWEeQ Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org How about this (untested): If this isn't correct, it should be very close to gthe answer. -- Jonathan Rosenberg Founder & Executive Director, Tabby's Place http://www.tabbysplace.org/ -----Original Message----- From: Matthew Jaggard [mailto:matthew@jaggard.org.uk]=20 Sent: Monday, July 19, 2010 11:40 AM To: Ant Users List Subject: Re: [Newbie] Nice way of concatenating files 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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org