ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: AW: Task adapter
Date Tue, 16 May 2006 10:43:12 GMT
Jan.Materne@rzf.fin-nrw.de 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 do the same thing 
>> without creating any extra files ? Can I just create an 
>> instance of the second task while executing the first one, 
>> call needed setter methods and execute it ?
> 
> 
> If you call the tasks methods directly it behaves just a normal java
> class.
> Ant doesnt do any dependency injection ...

It does one, setProject().

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message