A small prototype

Remi Forax forax at univ-mlv.fr
Wed Oct 21 16:30:53 UTC 2015


Hi guys,
I've written a small prototype that load a module-info.java (not the .class) and use the module resolution provided by jigsaw to verify the dependencies.

here is the code:
  https://github.com/forax/jigsaw-builtit/blob/master/src/buildit/com/githuib/forax/buildit/Main.java

It basically parses the module-info.java using a hand coded parser, see the result as a ModuleDescriptor and creates a custom ModuleFinder to see the parent directory of the directory that contains a module-info.java a the root of the modules. This is enough to be able to create a Configuration that verifies a module graph.

I will send another mail later this night about what should be changed in order to improve the API.

cheers,
Rémi


More information about the jpms-spec-observers mailing list