ApplicationHolder.application null in plugin scripts?

View: New views
1 Messages — Rating Filter:   Alert me  

ApplicationHolder.application null in plugin scripts?

by Michael Berg-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

I have a plugin which has an _Events.groovy script. The script needs to know what the name of the application is. Not the plugin application obviously, but the final application that the plugin lives in :-)

I thought this would work: ApplicationHolder?.application

But this just returns null, both when I'm doing a package-plugin and in the final application that uses the plugin.

Do plugin scripts not have access to metadata about the application it lives in? Is there another way to retrieve the information?

Regards,
Michael Berg