Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overview of modules #214

Open
sormuras opened this issue Mar 20, 2021 · 1 comment
Open

Add overview of modules #214

sormuras opened this issue Mar 20, 2021 · 1 comment

Comments

@sormuras
Copy link
Owner

sormuras commented Mar 20, 2021

Logbook

Module Table

123 modules are part of this project.
 99 declared modules: 9 main modules, 90 test modules including 10 in-module test modules
  4 external modules stored `.bach/external-modules`
 20 system modules provided by Java 16
module version category tags
foo 0.1-ea declared main
foo.bar 0.1-ea declared main
foo.bar 0.1-ea declared test, in-module
java.base 16 system mandated
java.xml 16 system -
org.junit.jupiter 5.7.1 external
org.junit.jupiter.api 5.7.1 external
test.foo 0.1-ea declared test

Print

123 modules are part of this project.
 99 declared modules: 9 main modules, 90 test modules including 10 in-module test modules
  4 external modules stored `.bach/external-modules`
 20 system modules provided by Java 16
@sormuras sormuras added this to the 17 milestone Mar 20, 2021
@sormuras
Copy link
Owner Author

sormuras commented Sep 1, 2021

Partly implemented in external program

if (arguments.isEmpty() || arguments.contains("modules")) {
var externalModulesFinder = ModuleFinder.of(bach.path().externalModules());
System.out.println();
System.out.println("## Modules");
System.out.println();
System.out.println("### Declared Modules");
System.out.println();
System.out.println(describeModules(explorer.newModuleInfoFinder(bach.path().root())));
System.out.println();
System.out.println("### External Modules");
System.out.println();
System.out.println(describeModules(externalModulesFinder));
System.out.println();
System.out.println("### Missing External Modules");
System.out.println();
var names = explorer.listMissingExternalModules(externalModulesFinder);
names.stream().map("- `%s`"::formatted).forEach(System.out::println);
System.out.printf(" %d missing module%s%n", names.size(), names.size() == 1 ? "" : "s");
System.out.println();
System.out.println("### System Modules");
System.out.println();
System.out.println(describeModules(ModuleFinder.ofSystem()));
}

@sormuras sormuras removed this from the 17 milestone Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant