GroovyScriptEngineFactory not accessible from Eclipse RCP [message #1701106] |
Thu, 09 July 2015 07:17  |
Eclipse User |
|
|
|
I have created an eclipse plugin that contributes a tool bar action. This plugin has dependency on groovy plugin 'org.codehaus.groovy'.
Here is my action command:
public void run(final IAction action) {
ScriptEngineManager scrEngMgr = new ScriptEngineManager();
List <ScriptEngineFactory> factories = scrEngMgr.getEngineFactories();
}
On execution of this command from RCP, in the list of ScriptEngineFactory, I do not get the GroovyScriptEngineFactory.
Looks like the RCP is not able to access the groovy jar exported by the groovy plugin.
I checked the source of groovy plugin 'org.codehaus.groovy' and see that in the MANIFEST.mf, all packages are exported and also lib/groovy-all-a.8.6.jar is added in the classpath.
Just for testing sake, in the same plugin, when I tried to run the same piece of code in a test class with a main() as a Java application, I do get the GroovyScriptEngineFactory from ScriptEngineManager.
Any clue on how to access GroovyScriptEngineFactory in an RCP?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07800 seconds