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

Remi Forax forax at univ-mlv.fr
Sun Sep 17 11:04:45 UTC 2017


Hi Christian,
  javac --module-source-path src/main
should work.

Rémi

----- Mail original -----
> De: "Christian Stein" <sormuras at gmail.com>
> À: jdk9-dev at openjdk.java.net
> Envoyé: Dimanche 17 Septembre 2017 10:22:34
> Objet: javac with --module-source-path and without --module

> 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