Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 71413 invoked from network); 9 Oct 2007 16:16:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2007 16:16:36 -0000 Received: (qmail 62808 invoked by uid 500); 9 Oct 2007 15:49:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 62784 invoked by uid 500); 9 Oct 2007 15:49:53 -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 62773 invoked by uid 99); 9 Oct 2007 15:49:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 08:49:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.kitt.reilly@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 15:49:56 +0000 Received: by py-out-1112.google.com with SMTP id a73so3496147pye for ; Tue, 09 Oct 2007 08:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=aNjkvFMiRR1QbBit4JxRtYhZZ2/1BRBtrTb3PomPtz0=; b=aAKAjCl3/ob9SQtsx/1B2vsTgFrv3FRYetsYD4yKUfC4Q32d2wO0Gyqv5/uU7EEXOMphHdlR/mlqo0MO6kEbG8EFJP4TXbyQ1wNexexfwbc0r/sHJRIH5kvQTtxS6WS4Vf/TuYPBMcte+QbsriYw2EFYh666ccolcumkb9S6eN4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tIeZHBU0T0qmfhpyw+bXLun8EGKKwCXRI2OnwFn1OnF64g730aE2SKf4I+cNPLiNEphQ9YdyWwkVbC8Uy0k3cLw2HPcIIvXXZ9+bMtEEFdO9YJXSFHPsEM47sAAn54rM75a0UoEh7E1GOuXkSnsx15y7Lz3lYbDHW3Kn8eaCq1I= Received: by 10.35.85.16 with SMTP id n16mr19893121pyl.1191944974692; Tue, 09 Oct 2007 08:49:34 -0700 (PDT) Received: by 10.35.97.14 with HTTP; Tue, 9 Oct 2007 08:49:33 -0700 (PDT) Message-ID: Date: Tue, 9 Oct 2007 16:49:33 +0100 From: "Peter Reilly" To: "Ant Users List" Subject: Re: How to get the count of the number of lines in a file using ANT In-Reply-To: <275833.96645.qm@web55110.mail.re4.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <275833.96645.qm@web55110.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org On 10/9/07, Matt Benson wrote: > > --- Peter Reilly wrote: > > > On 10/9/07, Matt Benson > > wrote: > > > Oh, ye of little faith... Look at: > > > > > > > > > http://ant.apache.org/manual/CoreTypes/resources.html#tokens > > > > > > for a hint... > > It is *not* good to have such things in the manual. > > How not, Peter? It is just that examples speak louder than words. It a manual saids that it is easy to do something, and then not show how to do it, and the reader cannot figure it out easily, it is quite annoying. see: http://www.catb.org/~esr/jargon/html/Y/yak-shaving.html Peter > > Anyway, I didn't have time to put together the example > earlier. Here goes: > > > > > > > > -Matt > > > > > Peter > > > > > > > > -Matt > > > > > > --- Prashant Reddy wrote: > > > > > > > Ok, none of the named filters that exist in ANT > > dist > > > > can help achieve > > > > this. You might need to use the scriptfilter, > > and i > > > > am not an expert in > > > > using scripting lang. > > > > > > > > -Prashant > > > > > > > > On Tue, 2007-10-09 at 11:09 +0530, Prashant > > Reddy > > > > wrote: > > > > > checkout the filterchains: > > > > > > > > > > > > > > > > > > > > http://ant.apache.org/manual/CoreTypes/filterchain.html > > > > > > > > > > > > > > > On Mon, 2007-10-08 at 15:20 -0700, Saladin > > Sharif > > > > wrote: > > > > > > I have a txt file and would like to get the > > > > count of the number of lines in that file, and > > then > > > > store that count into a property. > > > > > > > > > > > > I mean something equivalent to the unix > > command: > > > > > > cat file_name.txt | wc -l > > > > > > > > > > > > Can this be done using an existing ANT task? > > > > > > Thanks, > > > > > > -Saladin > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > > Need a vacation? Get great deals > > > > > > to amazing places on Yahoo! Travel. > > > > > > http://travel.yahoo.com/ > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Don't let your dream ride pass you by. Make it a > > reality with Yahoo! Autos. > > > http://autos.yahoo.com/index.html > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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 > > > > > > > > ____________________________________________________________________________________ > Check out the hottest 2008 models today at Yahoo! Autos. > http://autos.yahoo.com/new_cars.html > > --------------------------------------------------------------------- > 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