John Murph wrote:
> 
> Are you suggesting that task.execute() would work in this case if the task
> had the right configuration?  
> 

Yes, in this particular case it might just be a matter of getting the
configuration right.


John Murph wrote:
> 
> In my experience, task.execute() rarely does what I want because it
> doesn't honor dependencies,
> but I don't see any depends in this case, so you probably are correct.
> 

The truth is that we don't officially support calling tasks
programmatically. Instead you are supposed to use task dependencies whenever
possible. That said, I think task.execute() should work, but as you
mentioned it won't execute dependent tasks.

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/How-to-call-a-task-from-another-task-tp4338879p4341203.html
Sent from the gradle-user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email


Reply via email to