Package io.quarkus.deployment.pkg
Class JarUnsigner
java.lang.Object
io.quarkus.deployment.pkg.JarUnsigner
JarUnsigner is used to remove the signature from a jar file.
-
Method Summary
-
Method Details
-
unsignJar
Unsigns a jar file by removing the signature entries. If the JAR is not signed, it will simply copy the original JAR to the target path.- Parameters:
jarPath- the path to the jar file to unsigntargetPath- the path to the target jar file- Throws:
IOException- if an I/O error occurs
-
unsignJar
public static void unsignJar(Path jarPath, Path targetPath, Predicate<String> includePredicate) throws IOException Unsigns a jar file by removing the signature entries.- Parameters:
jarPath- the path to the jar file to unsigntargetPath- the path to the target jar fileincludePredicate- a predicate to determine which entries to include in the target jar- Throws:
IOException- if an I/O error occurs
-