Home Grails create custom script that call grails commands
Reply: 0

Grails create custom script that call grails commands

user661
1#
user661 Published in April 19, 2018, 8:55 pm

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

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.406747 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO