Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

Simplify rhino dependency update #4

@ic3fox

Description

@ic3fox

The reference of the Rhino version is stored in the RhinoScriptEngineFactory.
To get the RhinoScriptEngine, user should use following code :

        ScriptEngineManager manager = new ScriptEngineManager();
        ScriptEngine scriptEngine = manager.getEngineByName("rhino17R5");

I propose to add a generic name, which will not be in conflicts with the JDK rhino script engine,
so it will not be necessary to change it if we update the Rhino version.
Something like :

        ScriptEngineManager manager = new ScriptEngineManager();
        ScriptEngine scriptEngine = manager.getEngineByName("mozilla.rhino");

Cheers,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions