We have a scenario where we have this hook used in a package that is installed by OsgiInstaller. Basically the package containing the hook is installed into /apps/somewhere/install.author and picked up by the OsgiInstaller. This approach we choose as we have to run the installed hook only on author.
Unfortunately this doesn't work and the install hook runs into an exception (ClassLoader issue reported separately).
To achieve the same but not depending on OsgiInstaller I propose an enhancement which allows to execute specific scripts on a defined runmode only.
We have a scenario where we have this hook used in a package that is installed by
OsgiInstaller
. Basically the package containing the hook is installed into/apps/somewhere/install.author
and picked up by theOsgiInstaller
. This approach we choose as we have to run the installed hook only on author.Unfortunately this doesn't work and the install hook runs into an exception (
ClassLoader
issue reported separately).To achieve the same but not depending on
OsgiInstaller
I propose an enhancement which allows to execute specific scripts on a defined runmode only.