>> 
>> public class MyCustomTask extends Task {
>>     public MyCustomTask ()
>>     {
>>          System.out.println("Instanciated");
>>     }
>> }
>> 
>
>regarding the exception in the constructor; send a stack trace.
>
>
>Ant tasks normally use the log() operations, with different 
>levels of verbosity
>
>log("your files have been deleted",Project.MSG_VERBOSE); 
>log("unstable condition in the antimatter core",Project.MSG_ERROR);


For the ability to log the class needs a reference to the project instance.
IMHO inside the constructor there is no reference - it´s set via inherited
setProject() method (MyCustomTask --|> Task --|> ProjectComponent) AFTER
instantiation.

Jan

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

Reply via email to