make/CompileJavaModules.gmk
changeset 41658 14de1ab85d25
parent 41656 fd9df30e8738
child 41871 b641dc735fe5
child 41661 d759799570f8
--- a/make/CompileJavaModules.gmk	Thu Oct 27 21:21:52 2016 +0000
+++ b/make/CompileJavaModules.gmk	Fri Oct 28 14:29:20 2016 +0200
@@ -473,6 +473,13 @@
 jdk.localedata_EXCLUDE_FILES += sun/text/resources/ext/BreakIteratorRules_th.java
 
 ################################################################################
+# If this is an imported module that has prebuilt classes, only compile
+# module-info.java.
+ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
+  $(MODULE)_INCLUDE_FILES := module-info.java
+endif
+
+################################################################################
 # Setup the compilation for the module
 #
 MODULE_SRC_DIRS := $(call FindModuleSrcDirs, $(MODULE))