8165595: Main class should be set for nashorn modules

Reviewed-by: jlaskey, erikj
This commit is contained in:
Athijegannathan Sundararajan 2016-09-08 14:35:02 +05:30
parent e1a6127998
commit 32ded5866a

View File

@ -82,6 +82,14 @@ ifeq ($(MODULE), java.base)
endif
endif
ifeq ($(MODULE), jdk.scripting.nashorn.shell)
JMOD_FLAGS += --main-class jdk.nashorn.tools.jjs.Main
endif
ifeq ($(MODULE), jdk.scripting.nashorn)
JMOD_FLAGS += --main-class jdk.nashorn.tools.Shell
endif
# Changes to the jmod tool itself should also trigger a rebuild of all jmods.
# The variable JMOD_CMD could contain an environment variable assignment before
# the actual command. Filter that out using wildcard before adding to DEPS.