I'm tring to create a grails scritp ('grails create-script foo') that should receive two arguments. In it's implematition, it should call some command lines like: generate-views and generate-controllers and others commands, passing one of the parameters received.
So far I've got this: includeTargets << grailsScript("_GrailsInit")
target(foo: "The description of the script goes here!") {
def arguments= args
//grails create-controller arguments
}
setDefaultTarget(foo)
Anyone knows how to do this? Call a grails command inside a custom script?
Obs: I'm using grails 2.5.5