Class JarToolModularJarArchiver

java.lang.Object
All Implemented Interfaces:
Archiver, FinalizerEnabled

@Named("mjar") public class JarToolModularJarArchiver extends ModularJarArchiver
A ModularJarArchiver implementation that uses the jar tool provided by java.util.spi.ToolProvider to create modular JAR files.

The basic JAR archive is created by JarArchiver and the jar tool is used to upgrade it to modular JAR.

If the JAR file does not contain module descriptor or the JDK does not provide the jar tool (for example JDK prior to Java 9), then the archive created by JarArchiver is left unchanged.