You could either create an ad-hoc task of type Exec in your build script, or
write a task class (like you have done) and use the project.exec() method:

@TaskAction
def showPath() {
  project.exec {
    executable = '/usr/texbin/kpsewhich'
    environment TEXINPUTS: '.:tex:'
    args "--progname=$texProgram", "--show-path=$ext"
  }
}

Cheers,
Peter
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/custom-tasks-using-nested-tasks-tp3345548p3346160.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