Skip to content

Support passthrough of compilation options to java compiler #13

Description

@kemuri-9

By default the java compiler will only pick up classpath that the JVM itself was started with.
For scenarios where the usage of java-scriptengine is directly utilized within a "main" program or similar this is sufficient.

But in scenarios where the usage of java-scriptengine is utilized within a java servlet container (deployed as a war or similar) then the classpath picked up by the java compiler does not contain the contents of the servlet application.
In such scenarios it is required that options are passed to the java compiler to include -classpath (Java 9+ -modulepath as well) to be able to compile scripts within the container without issue.

Getting into what the compilation options should be is application specific, so the easiest solution is to simply accept and pass options through.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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