AW: AW: AW: Task adapter

2006-05-16 Thread Jan.Materne
>what happens when mytask2 calls log() in its execute method if you >*dont* call setProject(0 I would expect a NPE :-) That`s the binding would help, but AFAIK Ant does not do this automatically. (Only for ProjectComponents that are ed.) Jan

Re: AW: AW: Task adapter

2006-05-16 Thread Steve Loughran
[EMAIL PROTECTED] wrote: If you call the tasks methods directly it behaves just a normal java class. Ant doesnt do any dependency injection ... It does one, setProject(). Mmh - really? MyTask1 extends Task { MyTask2 t = new MyTask2(); // t.getProject() ??? } MyTask2 ex

AW: AW: Task adapter

2006-05-16 Thread Jan.Materne
>> If you call the tasks methods directly it behaves just a normal java >> class. >> Ant doesnt do any dependency injection ... > >It does one, setProject(). Mmh - really? MyTask1 extends Task { MyTask2 t = new MyTask2(); // t.getProject() ??? } MyTask2 extends Task {} Jan -