In Grails 2, how do you include Targets from Gant scripts from the plugin that your application depends on?

In Grails 2, I create my own company authentication plugin, which depends on the siro plugin. I would like to use syntax scripts in my plugin scripts. My problem is that I do not know how to access the syntax scripts in my includeTargets.

I would like to reuse the goals defined in _ShiroInternal.groovy, but I don't know which Grails variables to use to access it:

includeTargets << new File ("${**what-goes-here**}/scripts/_ShiroInternal.groovy") 
+2
source share
1 answer

For each installed plugin, there is a property, fooPluginDir . So for the platinum plugin it will be

 includeTargets << new File(shiroPluginDir, 'scripts/_ShiroInternal.groovy') 
+3
source

All Articles