Allow per-module --module-path parameters
authorNot Zed <notzed@gmail.com>
Sat, 25 Jan 2020 01:57:17 +0000 (12:27 +1030)
committerNot Zed <notzed@gmail.com>
Sat, 25 Jan 2020 01:57:17 +0000 (12:27 +1030)
java.make

index 01df66d..5df6351 100644 (file)
--- a/java.make
+++ b/java.make
@@ -258,7 +258,7 @@ bin/status/%.classes:
        @install -d $(@D)
        $(JAVAC) \
                --module-source-path "src/*/classes:bin/gen/*/classes" \
-               $(if $(JAVAMODPATH),--module-path $(subst $(S),:,$(JAVAMODPATH))) \
+               $(if $(JAVAMODPATH) $($*_JAVAMODPATH),--module-path $(subst $(S),:,$(JAVAMODPATH) $($*_JAVAMODPATH))) \
                $(JAVACFLAGS) $($*_JAVACFLAGS) \
                -h bin/inc \
                -d bin/modules \