Execute Grails Command in BuildConfig GAnt closure

87 Views Asked by At

I want to execute a Grails command (grails doc) in the BuildConfig.groovy to do some stuff before the war is packaged:

grails.war.resources = { stagingDir, args ->
    // call some ant tasks
}

How can I execute a Grails command in this closure?

0

There are 0 best solutions below