From: Mathieu Baudier Date: Sun, 23 Oct 2022 10:21:46 +0000 (+0200) Subject: Disable compression of jar archives X-Git-Tag: v2.3.3~2 X-Git-Url: https://git.argeo.org/?a=commitdiff_plain;h=011da452e55dc7a33206b676ec2286dfa0ea68cd;p=cc0%2Fargeo-build.git Disable compression of jar archives --- diff --git a/src/org/argeo/build/Make.java b/src/org/argeo/build/Make.java index d9e61d6..693e6f5 100644 --- a/src/org/argeo/build/Make.java +++ b/src/org/argeo/build/Make.java @@ -31,6 +31,7 @@ import java.util.concurrent.CompletableFuture; import java.util.jar.JarEntry; import java.util.jar.JarOutputStream; import java.util.jar.Manifest; +import java.util.zip.Deflater; import org.eclipse.jdt.core.compiler.CompilationProgress; @@ -275,6 +276,7 @@ public class Make { Files.createDirectories(jarP.getParent()); try (JarOutputStream jarOut = new JarOutputStream(Files.newOutputStream(jarP), manifest)) { + jarOut.setLevel(Deflater.NO_COMPRESSION); // add all classes first Files.walkFileTree(binP, new SimpleFileVisitor() { @Override