ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Martin" <antu...@gmail.com>
Subject Re: Count Lines of Text?
Date Thu, 15 Jun 2006 07:20:00 GMT
Hello,

You may want to have a look at antcount:
http://antcount.sourceforge.net/

Rgds,

Patrick

On 6/14/06, Aaron Davies <aaron.davies@gmail.com> wrote:
> I've got no problems with ant-contrib; I'm already using several of
> their tasks. Do they have something to do this? I didn't see one.
>
> On 6/14/06, EJ Ciramella <ejciramella@upromise.com> wrote:
> > Nothing unless you want to go to antcontrib (I passed on that and wrote
> > a linecounter myself).
> >
> >
> > -----Original Message-----
> > From: Aaron Davies [mailto:aaron.davies@gmail.com]
> > Sent: Wednesday, June 14, 2006 4:14 PM
> > To: Ant Users List; Martin Gainty
> > Subject: Re: Count Lines of Text?
> >
> > On 6/14/06, Martin Gainty <mgainty@hotmail.com> wrote:
> >
> > > Aaron Davies wrote:
> > >
> > > > Is there a simple way to count lines of text in a property/file? Not
> > > > lines of source code or anything, just raw lines of text, like "wc
> > > > -l". I mean, I could probably do something with line terminators,
> > but
> > > > I'd rather have something that knows how to count lines properly on
> > > > multiple platforms.
> > >
> > > grep is your friend
> > > grep -c '^'  FileName
> >
> > Not exactly cross-platform, is it? I might as well use "wc -l". I'm
> > looking for something done in ant itself.
> > --
> > Aaron Davies
> > aaron.davies@gmail.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
> >
> >
>
>
> --
> Aaron Davies
> aaron.davies@gmail.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


Mime
View raw message