ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronald Trask" <rtr...@echo-inc.com>
Subject RE: linecount
Date Fri, 23 Apr 2004 21:36:28 GMT
There are a number of utilities that you can use that do a better job of
calculating the number of lines of code that are free if that is what
you are looking for. Check out http://www.dwheeler.com/sloccount/ for
one of the best.

-----Original Message-----
From: EJ Ciramella [mailto:eciramella@upromise.com] 
Sent: Friday, April 23, 2004 3:23 PM
To: Ant Users List
Subject: RE: linecount

thanks a million!

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Friday, April 23, 2004 5:23 PM
To: 'Ant Users List'
Subject: RE: linecount


> From: EJ Ciramella [mailto:eciramella@upromise.com]
> 
> What is the easiest way to count all the lines in all the files of a
> project?  I don't care about coding style/standards, just line count?

cd project-top-level
find . -name \*.java -print | wc -l

or

find . \( -name \*.java -o -name \*.cpp \) -print | wc -l

If you have Java and C++ sources for example.

--DD

---------------------------------------------------------------------
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


Mime
View raw message