detect name of grails script being run?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

detect name of grails script being run?

interz
Hi,
I have a custom Config.groovy closure that I am having War.groovy call (see http://jira.codehaus.org/browse/GRAILS-2524)

Basically I want this closure to behave differently if it is being called from RunWar.groovy (which calls War.groovy).

How can I detect the name of the script currently being executed?

thanks



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: detect name of grails script being run?

burtbeckwith
System.properties['current.gant.script']

Burt

On Wednesday 05 March 2008 12:11:41 am ahnf wrote:

> Hi,
> I have a custom Config.groovy closure that I am having War.groovy call (see
> http://jira.codehaus.org/browse/GRAILS-2524)
>
> Basically I want this closure to behave differently if it is being called
> from RunWar.groovy (which calls War.groovy).
>
> How can I detect the name of the script currently being executed?
>
> thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email