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