Class EclipseJarSignerFilter
java.lang.Object
org.eclipse.cbi.maven.plugins.jarsigner.EclipseJarSignerFilter
- All Implemented Interfaces:
FilteredJarSigner.Filter
Checks and returns whether the given file should be signed. The condition are:
- the file is a readable file with the
.jarfile extension. - the file Jar does not have a entry "META-INF/eclipse.inf" with the either the properties "jarprocessor.exclude.sign" or "jarprocessor.exclude"
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringJar file extension.private static final Stringeclispe.infproperty to exclude this Jar from processing (and thus signing).private static final Stringeclispe.infproperty to exclude this Jar from signing.private final org.apache.maven.plugin.logging.Logprivate static final StringPath of theeclispe.infentry in a Jar -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanisDisabledInEclipseInf(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".booleanshouldBeSigned(Path file)
-
Field Details
-
JARPROCESSOR_EXCLUDE_SIGN
eclispe.infproperty to exclude this Jar from signing.- See Also:
-
JARPROCESSOR_EXCLUDE
eclispe.infproperty to exclude this Jar from processing (and thus signing).- See Also:
-
META_INF_ECLIPSE_INF
Path of theeclispe.infentry in a Jar- See Also:
-
DOT_JAR_GLOB_PATTERN
Jar file extension.- See Also:
-
log
private final org.apache.maven.plugin.logging.Log log
-
-
Constructor Details
-
EclipseJarSignerFilter
public EclipseJarSignerFilter(org.apache.maven.plugin.logging.Log log)
-
-
Method Details
-
shouldBeSigned
- Specified by:
shouldBeSignedin interfaceFilteredJarSigner.Filter- Throws:
IOException
-
isDisabledInEclipseInf
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".- Parameters:
file-- Returns:
- true if it finds a property that excludes this file for signing.
- Throws:
org.apache.maven.plugin.MojoExecutionExceptionIOException
-