File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
src/main/java/org/mangorage/bootstrap Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 66import java .lang .reflect .Method ;
77import java .net .URLClassLoader ;
88import java .nio .file .Path ;
9- import java .util .stream . Collectors ;
9+ import java .util .Set ;
1010
1111import static org .mangorage .bootstrap .Bootstrap .fetchJars ;
1212
1313public final class Test {
1414 public static void main (String [] args ) {
15+ try {
16+ System .out .println ("you have 15 seconds!" );
17+ Thread .sleep (15_000 );
18+
19+ } catch (Throwable ignored ) {}
20+
1521 Path libsPath = Path .of ("libraries" );
1622 Path pluginsPath = Path .of ("plugins" );
1723
@@ -21,13 +27,10 @@ public static void main(String[] args) {
2127
2228 Configuration cfg = ModuleLayer .boot ()
2329 .configuration ()
24- .resolve (
25- plugins ,
30+ .resolveAndBind (
31+ finder ,
2632 ModuleFinder .of (),
27- plugins .findAll ()
28- .stream ()
29- .map (ref -> ref .descriptor ().name ())
30- .toList ()
33+ Set .of ()
3134 );
3235
3336
You can’t perform that action at this time.
0 commit comments