javac with --module-source-path and without --module

Christian Stein sormuras at gmail.com
Sun Sep 17 08:22:34 UTC 2017


Hi all,

is there an option similar to special "ALL-MODULE-PATH" constant
usable with "--add-modules" when you want to compile all modules
that can be found on the "--module-source-path"?

At the moment, I'm using this verbose command ("-d" and "-p" omitted for
brevity):

  javac --module-source-path src/main --module foo --module bar

It would be nice to delegate the "find all module directories" to the javac
tool like:

  javac --module-source-path src/main --module ALL-MODULE-SOURCE-PATH

Cheers,
Christian


More information about the jdk9-dev mailing list