dear,
I create a simple task as indicated in the ANT book : "Ant: The Definitive 
Guide", Second Edition
from O'Reilly. Something like 

import java.io.IOException;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.taskdefs.Execute;
import org.apache.tools.ant.types.Commandline;

public class MyCustomTask extends Task 
{
    public MyCustomTask ()
    {
         System.out.println("Instanciated");
    }

    public void init() 
    {
        System.out.println("initialized");
    }

    public void execute() 
    {
        System.out.println("executed");
    }
}

The funny thing is that the init seems to be called twice ... ANT-version is 
either 1.6.2 & 1.6.5
and invoking the log-methode in the constructor throws a NullPOinterException. 
Any idea about
those ... ?



\T,




--
Any fool can write code that a computer can understand. 
Good programmers write code that humans can understand.
                                                   Martin Fowler 
T. : +32 (0)2 742 05 94
M. : +32 (0)497 44 68 12
@  : [EMAIL PROTECTED]
Do you skype too ... ?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to