public class EclipseJarSignerFilter extends java.lang.Object implements FilteredJarSigner.Filter
.jar
file extension.Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
DOT_JAR_GLOB_PATTERN
Jar file extension.
|
private static java.lang.String |
JARPROCESSOR_EXCLUDE
eclispe.inf property to exclude this Jar from processing (and thus signing). |
private static java.lang.String |
JARPROCESSOR_EXCLUDE_SIGN
eclispe.inf property to exclude this Jar from signing. |
private org.apache.maven.plugin.logging.Log |
log |
private static java.lang.String |
META_INF_ECLIPSE_INF
Path of the
eclispe.inf entry in a Jar |
Constructor and Description |
---|
EclipseJarSignerFilter(org.apache.maven.plugin.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
isDisabledInEclipseInf(java.nio.file.Path file)
Checks and returns whether the given Jar file has signing disabled by an
file "META-INF/eclipse.inf" with the either the properties
"jarprocessor.exclude.sign" or "jarprocessor.exclude".
|
boolean |
shouldBeSigned(java.nio.file.Path file) |
private static final java.lang.String JARPROCESSOR_EXCLUDE_SIGN
eclispe.inf
property to exclude this Jar from signing.private static final java.lang.String JARPROCESSOR_EXCLUDE
eclispe.inf
property to exclude this Jar from processing (and thus signing).private static final java.lang.String META_INF_ECLIPSE_INF
eclispe.inf
entry in a Jarstatic final java.lang.String DOT_JAR_GLOB_PATTERN
private final org.apache.maven.plugin.logging.Log log
public EclipseJarSignerFilter(org.apache.maven.plugin.logging.Log log)
public boolean shouldBeSigned(java.nio.file.Path file) throws java.io.IOException
shouldBeSigned
in interface FilteredJarSigner.Filter
java.io.IOException
private static boolean isDisabledInEclipseInf(java.nio.file.Path file) throws java.io.IOException
file
- org.apache.maven.plugin.MojoExecutionException
java.io.IOException