Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 64264 invoked from network); 12 Mar 2002 18:39:06 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Mar 2002 18:39:06 -0000 Received: (qmail 10273 invoked by uid 97); 12 Mar 2002 18:39:06 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 10228 invoked by uid 97); 12 Mar 2002 18:39:05 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 10217 invoked from network); 12 Mar 2002 18:39:05 -0000 X-Authentication-Warning: neutron.csl.sri.com: valentin owned process doing -bs Date: Tue, 12 Mar 2002 10:39:05 -0800 (PST) From: Valentin Crettaz To: Subject: Count Task Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi everybody, I'm new to the ant community so I'll keep this short. I've developed a new task called "count" which summarizes the line counts of a project. Currently the following file types are implemented: *.java,*.xml,*.html,*.js,*.properties,*.c,*.h,*.cpp,*.hpp,*.c++,*.h++,*.cxx,*.hxx *.jsp,*.php The syntax of the task is for instance: This recursively counts the source code lines of Java, XML and HTML files (filter="java,xml,html") beginning in the current directory (dir=".") and iterating in all nested directories (recursive="true") the output is something like this: [count] XML files in /homes/valentin/testing/ant: [count] 8 program lines [count] 3 comment lines [count] 2 blank lines [count] 13 lines in total [count] [count] Java files in /homes/valentin/testing/ant: [count] 12 program lines [count] 13 comment lines [count] 4 blank lines [count] 29 lines in total [count] [count] HTML files in /homes/valentin/testing/ant: [count] 6 program lines [count] 3 comment lines [count] 2 blank lines [count] 11 lines in total [count] [count] --------------------------------------------- [count] All files in /homes/valentin/testing/ant: [count] 26 program lines [count] 19 comment lines [count] 8 blank lines [count] 53 lines in total So I just wanted to know if the Ant community would be interested in this task or if another existing task already performs this. Thank you Val -- Sun Certified Programmer for the Java 2 Platform Valentin Crettaz Office: EK 247 SRI International Internet: valentin@sdl.sri.com 333 Ravenswood Ave. Phone: +1 (650) 859 39 04 Menlo Park, CA 94025 WWW: http://www.sdl.sri.com/people/valentin/ -- To unsubscribe, e-mail: For additional commands, e-mail: