A small prototype
forax at univ-mlv.fr
Wed Oct 21 16:30:53 UTC 2015
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:
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.
More information about the jpms-spec-experts