Re: How to get the count of the number of lines in a file using ANT

2007-10-11 Thread Prashant Reddy
** > * Saladin Sharif > * e-mail: [EMAIL PROTECTED] > * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs > ** > > > ----- Original Message ---- > From: Prashant Reddy <[EMAIL PR

Re: How to get the count of the number of lines in a file using ANT

2007-10-11 Thread Saladin Sharif
AIL PROTECTED] * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs ** - Original Message From: Prashant Reddy <[EMAIL PROTECTED]> To: Saladin Sharif <[EMAIL PROTECTED]>; Ant Users List Sent: Tuesday, October 9, 2007 9:

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Prashant Reddy
On Tue, 2007-10-09 at 12:25 -0700, Saladin Sharif wrote: > But what I am really after is being able to set a flag if the file > contains one or more lines of text. oh you are looking to do something like : cat log.txt | grep "a string" | wc -l

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Saladin Sharif
gaia.ecs.csus.edu/~sharifs > ********************** > > > ----- Original Message ---- > From: Matt Benson <[EMAIL PROTECTED]> > To: Ant Users List ; Saladin > Sharif <[EMAIL PROTECTED]> > Sent: Tuesday, October

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Matt Benson
* > > > - Original Message ---- > From: Matt Benson <[EMAIL PROTECTED]> > To: Ant Users List ; Saladin > Sharif <[EMAIL PROTECTED]> > Sent: Tuesday, October 9, 2007 12:48:34 PM > Subject: Re: How to get the c

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Saladin Sharif
From: Matt Benson <[EMAIL PROTECTED]> To: Ant Users List ; Saladin Sharif <[EMAIL PROTECTED]> Sent: Tuesday, October 9, 2007 12:48:34 PM Subject: Re: How to get the count of the number of lines in a file using ANT --- Saladin Sharif <[EMAIL PROTECTED]> wrote: > >Anywa

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Matt Benson
n rather than as a task. See http://ant.apache.org/manual/CoreTasks/condition.html HTH, Matt > > > > ** > * Saladin Sharif > * e-mail: [EMAIL PROTECTED] > * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs > ***

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Saladin Sharif
* - Original Message From: Matt Benson <[EMAIL PROTECTED]> To: Ant Users List Sent: Tuesday, October 9, 2007 8:16:50 AM Subject: Re: How to get the count of the number of lines in a file using ANT --- Peter Reilly <[EMAIL PROTECTED]> wrote:

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Matt Benson
--- Peter Reilly <[EMAIL PROTECTED]> wrote: > On 10/9/07, Matt Benson <[EMAIL PROTECTED]> > wrote: > > > > --- Peter Reilly <[EMAIL PROTECTED]> > wrote: > > > > > On 10/9/07, Matt Benson <[EMAIL PROTECTED]> > > > wrote: > > > > Oh, ye of little faith... Look at: > > > > > > > > > > > > > > http:/

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Peter Reilly
On 10/9/07, Matt Benson <[EMAIL PROTECTED]> wrote: > > --- Peter Reilly <[EMAIL PROTECTED]> wrote: > > > On 10/9/07, Matt Benson <[EMAIL PROTECTED]> > > wrote: > > > Oh, ye of little faith... Look at: > > > > > > > > > http://ant.apache.org/manual/CoreTypes/resources.html#tokens > > > > > > for a h

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Matt Benson
--- Peter Reilly <[EMAIL PROTECTED]> wrote: > On 10/9/07, Matt Benson <[EMAIL PROTECTED]> > 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, Pe

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Peter Reilly
On 10/9/07, Matt Benson <[EMAIL PROTECTED]> 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. Peter > > -Matt > > --- Prashant Reddy <[EMAIL PROTECTED]> wrote: > > > Ok

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Prashant Reddy
Ok, that looks interesting. But I seem to lack the requisite imagination. :-) I could not find an example that uses the resources in the ant-book (Thanks Steve L) either. I was thinking along the lines of -Prashant On Tue, 2007-10-09 at 05:55 -0700, Matt Benson wrote: > Oh, ye

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread David Weintraub
All right. You win, we believe you. Now, can you show us a coding example. I can see how you can use tokens for grep and sed, but not for "wc -l". On 10/9/07, Matt Benson <[EMAIL PROTECTED]> wrote: > Oh, ye of little faith... Look at: > > http://ant.apache.org/manual/CoreTypes/resources.html#token

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Matt Benson
Oh, ye of little faith... Look at: http://ant.apache.org/manual/CoreTypes/resources.html#tokens for a hint... -Matt --- Prashant Reddy <[EMAIL PROTECTED]> 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

Re: How to get the count of the number of lines in a file using ANT

2007-10-09 Thread Prashant Reddy
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/Cor

Re: How to get the count of the number of lines in a file using ANT

2007-10-08 Thread Prashant Reddy
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