AW: Task adapter

2006-05-16 Thread Jan.Materne
>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

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 -

Re: AW: Task adapter

2006-05-16 Thread Steve Loughran
[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

AW: Task adapter

2006-05-16 Thread Jan.Materne
>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