Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19785
| From | Laura Schmidt <ls@mailinator.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | ant task to compute lines of code |
| Date | 2012-11-18 16:43 +0100 |
| Organization | (posted via) M-net Telekommunikations GmbH |
| Message-ID | <k8avks$nl8$1@news.m-online.net> (permalink) |
Hello,
I want to find out the total lines of code of a project using an ant task.
On the commandline I would do this like this:
find src -name *.java | wc -l
In ant, I only managed to output all the code:
<target name="loc">
<exec executable="find">
<arg line="src -name *.java -exec cat {} ;"/>
</exec>
</target>
So I can get the loc like this:
ant -f project.xml loc | wc -l
But how can I integrate the "wc -l" in the ant task?
Thanks
Laura
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
ant task to compute lines of code Laura Schmidt <ls@mailinator.com> - 2012-11-18 16:43 +0100
Re: ant task to compute lines of code "John B. Matthews" <nospam@nospam.invalid> - 2012-11-18 11:19 -0500
Re: ant task to compute lines of code Roedy Green <see_website@mindprod.com.invalid> - 2012-11-19 19:27 -0800
Re: ant task to compute lines of code Robert Klemme <shortcutter@googlemail.com> - 2012-11-18 17:24 +0100
Re: ant task to compute lines of code Laura Schmidt <ls@mailinator.com> - 2012-11-19 04:28 +0100
Re: ant task to compute lines of code Lew <lewbloch@gmail.com> - 2012-11-18 20:35 -0800
Re: ant task to compute lines of code Robert Klemme <shortcutter@googlemail.com> - 2012-11-19 05:07 -0800
Re: ant task to compute lines of code Arne Vajhøj <arne@vajhoej.dk> - 2012-11-18 11:52 -0500
Re: ant task to compute lines of code Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-11-19 00:05 -0600
Re: ant task to compute lines of code Jeff Higgins <jeff@invalid.invalid> - 2012-11-19 08:44 -0500
csiph-web