r/java • • Jul 31 '26

Modular Uberjars

https://github.com/bowbahdoe/modular-uberjars
22 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/bowbahdoe Aug 01 '26

Noted. 

1

u/bowbahdoe Aug 01 '26

yep I see what you are talking about

            // JAR file
            if (fn.endsWith(".jar")) {
                if (isDefaultFileSystem) {
                    return readJar(entry);
                } else {
                    // the JAR file is in a custom file system so
                    // need to copy it to the local file system
                    Path tmpdir = Files.createTempDirectory("mlib");
                    Path target = Files.copy(entry, tmpdir.resolve(fn));
                    return readJar(target);
                }
            }