AW: Ant Tutorial - Question

2005-02-14 Thread Jan . Materne
setMessage( args.length>0 ? args[0] : "Default Message" ); task.execute(); } Jan > -Ursprüngliche Nachricht- > Von: Erik Hatcher [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 15. Februar 2005 02:12 > An: Ant Users List > Betreff: Re: Ant Tutorial - Questi

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)
ruary 14, 2005 2:44 PM > To: user@ant.apache.org > Subject: Ant Tutorial - Question > > > Hello: > > I am trying to do the Ant tutorial to understand how it works. > > According to the tutorial, I have to create a HelloWorld.java with the > following code: >

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

Ant Tutorial - Question

2005-02-14 Thread venkats
Hello: I am trying to do the Ant tutorial to understand how it works. According to the tutorial, I have to create a HelloWorld.java with the following code: public class HelloWorld { public void execute() { System.out.println("Hello World"); } } I am also new to java. My underst