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

Grails create custom script that call grails commands

user661 Published in July 16, 2018, 6:19 am

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


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.325179 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO