>The problem is that I have a lot of filesets, and each of them
>must be copied to its own directory. This way I'm getting a
>lot of instances of modified copy task, which in turn create
>many instances of shellscipt task, which do a lot of
>shell/system calls. This last bit makes the whole sys
>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
-
[EMAIL PROTECTED] wrote:
I have two existing tasks. I want to modify the first task so
that it runs the second one as part of its work.
I have code which creates ant build file with parameters for
the second task and then uses new instance of AntScenario to
run that file. The question is, can
>I have two existing tasks. I want to modify the first task so
>that it runs the second one as part of its work.
>
>I have code which creates ant build file with parameters for
>the second task and then uses new instance of AntScenario to
>run that file. The question is, can I do the same thing