Ali, Haneef wrote:
> 
> Since this task doesn't have user defined action closure, nothing is
> getting executed when I do tasks.myTar.execute()
> 

Like any other task type, "Tar" defines an action that gets run when
execute() is called. However, "Tar" doesn't have a "destination()" method
(at least not in 1.0-m2). Instead you should use the "destinationDir"
property:

task myTar(type: Tar) {
  ..
  destinationDir = buildDir
  ..
}

--
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-tp4338879p4340524.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