As always, it´s really easy once you know how:
includeTargets << grailsScript("Init")
import org.codehaus.groovy.grails.cli.GrailsScriptRunner
target(main: "The description of the script goes here!") {
System.setProperty("grails.env", "wadl")
GrailsScriptRunner.main("test-app")
}
setDefaultTarget(main)
Inga kommentarer:
Skicka en kommentar