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
.jar
file 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 String
Jar file extension.private static final String
eclispe.inf
property to exclude this Jar from processing (and thus signing).private static final String
eclispe.inf
property to exclude this Jar from signing.private final org.apache.maven.plugin.logging.Log
private static final String
Path of theeclispe.inf
entry in a Jar -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isDisabledInEclipseInf
(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
(Path file)
-
Field Details
-
JARPROCESSOR_EXCLUDE_SIGN
eclispe.inf
property to exclude this Jar from signing.- See Also:
-
JARPROCESSOR_EXCLUDE
eclispe.inf
property to exclude this Jar from processing (and thus signing).- See Also:
-
META_INF_ECLIPSE_INF
Path of theeclispe.inf
entry 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:
shouldBeSigned
in 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.MojoExecutionException
IOException
-