Re: Ant Tutorial - Question

2005-02-14 Thread Erik Hatcher
On Feb 14, 2005, at 5:56 PM, Anderson, Rob (Global Trade) wrote: I think this should say... public class HelloWorld extends org.apache.tools.ant.Task { An Ant task only needs a "public void execute()" method though. Extending from Task is handy (to get the Project instance and log things) but no

RE: Ant Tutorial - Question

2005-02-14 Thread Anderson, Rob (Global Trade)
I think this should say... public class HelloWorld extends org.apache.tools.ant.Task { ... This is an Ant task, not a stantalone java program. Ant contains the main method somewhere. It's not necessary to know for writing tasks. If you really want to find out though, look at the script ant or a

Re: Ant Tutorial - Question

2005-02-14 Thread Douglas Kramer
Venki, Try this instead. Yes, you need a method named "main" as follows: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } } More details: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html -Doug [EMAIL PROTE