One way to run your script is to use  http://groovy.codehaus.org/Groovy+Shell
GroovyShell . If you want to pass in variables 
http://docs.codehaus.org/display/GROOVY/Embedding+Groovy GroovyScriptEngine 
would be a good option. Here's an example for using GroovyShell:

task runScript << {
    new GroovyShell().run(file('src/main/groovy/yourscript.groovy'))
}



--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Running-Groovy-script-from-Gradle-tp4373467p4378284.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