Maybe you should start reading the tutorial from the beginning:
"Tutorial: Writing Tasks
This document provides a step by step tutorial for writing tasks."
That�s a tutorial about writing tasks - not simple java apps.
The techniques are the same: code, compile, test ... But that java class is
not
startable. If you want to do start your task from the command line I suggest
providing
a main like
public static void main(String args[]) {
HelloWorld task = new HelloWorld();
// use task.setXXX() methods for settings values, maybe from args
array like
task.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 - Question
>
>
> 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 not necessary.
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>