Re: [gradle-user] Calling task from another task

2008-12-19 Thread Paweł Krupiński
>> I've been looking for it in the user guide and API, but haven't found it: >> Is there a way to execute a gradle task from another gradle task (but >> not through dependency), like antcall? > > What is your use case? Why does dependsOn does not work for you? > > Szczepan has pointed out that you

Re: [gradle-user] Calling task from another task

2008-12-19 Thread Hans Dockter
On Dec 16, 2008, at 6:04 PM, Paweł Krupiński wrote: I've been looking for it in the user guide and API, but haven't found it: Is there a way to execute a gradle task from another gradle task (but not through dependency), like antcall? What is your use case? Why does dependsOn does not work

Re: [gradle-user] Calling task from another task

2008-12-16 Thread szczepiq
Actually, I've been browsing gradle source code and I found a way to do it: your_task.execute() Szczepan On Tue, Dec 16, 2008 at 6:04 PM, Paweł Krupiński wrote: > I've been looking for it in the user guide and API, but haven't found it: > Is there a way to execute a gradle task from another gra

Re: [gradle-user] Calling task from another task

2008-12-16 Thread szczepiq
I don't know if there is an antcall equivalent in gradle. Obviously what you could do is extract a method and call this method from both tasks - but you probably know this already :) Cheers, Szczepan Faber On Tue, Dec 16, 2008 at 6:04 PM, Paweł Krupiński wrote: > I've been looking for it in the

[gradle-user] Calling task from another task

2008-12-16 Thread Paweł Krupiński
I've been looking for it in the user guide and API, but haven't found it: Is there a way to execute a gradle task from another gradle task (but not through dependency), like antcall? Paweł