On 21/07/2011, at 5:42 AM, Levi Yourchuck wrote:

> How can one invoke a task from within an Action of another task?

You can't. If you _need_ to do this, model the thing-to-do as a closure var or 
method in the build script and have the action call that.

> How can one invoke a task from within a groovy method?

You shouldn't, there is no supported way.

> A couple days ago someone asked about the need to have a non blocking 
> invocation of a task and I posted to this list that they should try something 
> like this:
> 
> new Thread( { yourTask.execute() } ).start()
> 
> I don't know if that solved their issue but I heard back that this was 
> something to avoid, because it may be impossible in a future revision.  I am 
> wondering what can be done in it's place?  Is there an API to interact with 
> to accomplish this?

If you are trying to execute tasks yourself you are fighting Gradle and 
bypassing a lot of what it is doing.

-- 
Luke Daley
Principal Engineer, Gradleware 
http://gradleware.com


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to