;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;
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
>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()
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
{
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
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
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?
Is there any good way to count how many lines in a file there is?