grailsプロジェクトにガントスクリプトがあります。
私はこのようなことをしたいと思います:
includeTargets << new File ( "${grailsHome}/scripts/War.groovy" )
war()
ただし、Tomcatプラグインによって提供されるスクリプトのデプロイターゲットの場合。
具体的には、このターゲットを呼び出したいと思います。
grails prod tomcat deploy
それはどのように起こりますか?
正直なところ、私はあなたのユースケースを本当に理解していませんでした。アプリケーションのgantスクリプト内からtomcatdeployを実行したいと思います。もしそうなら、これが行く方法です:
includeTargets << new File ( "${grailsHome}/scripts/Init.groovy" )
includeTargets << new File("${pluginsHome}/tomcat-${grailsVersion}/scripts/Tomcat.groovy")
target(default: "convert csv files into properties files") {
list() // should implicitly call "grails tomcat list"
}
〜