Re: Counting lines in a file

2006-05-12 Thread Patrick Martin
;Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 12. Mai 2006 07:28 >An: user@ant.apache.org >Betreff: AW: Counting lines in a file > >>import java.io.BufferedReader; >>import java.io.File; >>import java.io.FileReader;

AW: Counting lines in a file

2006-05-11 Thread Jan.Materne
And maybe there are some existing tasks you could use, like http://antcount.sourceforge.net/ ;-) Jan >-Ursprüngliche Nachricht- >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 12. Mai 2006 07:28 >An: user@ant.apache.org >Betreff: AW: Counting

AW: Counting lines in a file

2006-05-11 Thread Jan.Materne
>import java.io.BufferedReader; >import java.io.File; >import java.io.FileReader; >import java.util.ArrayList; > >import org.apache.tools.ant.BuildException; >import org.apache.tools.ant.Task; > >public class LineCounter extends Task >{ > public String filename; > public void Execute()

RE: Counting lines in a file

2006-05-11 Thread EJ Ciramella
Nevermind - change Execute to execute and everything is well -Original Message- From: EJ Ciramella Sent: Thursday, May 11, 2006 6:42 PM To: 'Ant Users List' Subject: RE: Counting lines in a file I'm not seeing the output from my class now (I know this is a simple/stu

RE: Counting lines in a file

2006-05-11 Thread EJ Ciramella
{ e.printStackTrace(); System.exit(-1); } return integlist.size(); } } -Original Message- From: Rich Wagner [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 5:18 PM To: Ant Users List Subject: Re: Counting li

Re: Counting lines in a file

2006-05-11 Thread Rich Wagner
Is there any good way to count how many lines in a file there is? You could also write a simple, custom Task to do this; see the online Ant manual for guidance... -- Rich Wagner

Re: Counting lines in a file

2006-05-11 Thread Jeffrey E Care
11/2006 05:10 PM Please respond to "Ant Users List" To "Ant Users List" cc Subject Counting lines in a file Is there any good way to count how many lines in a file there is?

Counting lines in a file

2006-05-11 Thread EJ Ciramella
Is there any good way to count how many lines in a file there is?