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
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
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:
>
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
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