Class EclipseJarSignerFilter

    • Field Detail

      • JARPROCESSOR_EXCLUDE_SIGN

        private static final java.lang.String JARPROCESSOR_EXCLUDE_SIGN
        eclispe.inf property to exclude this Jar from signing.
        See Also:
        Constant Field Values
      • JARPROCESSOR_EXCLUDE

        private static final java.lang.String JARPROCESSOR_EXCLUDE
        eclispe.inf property to exclude this Jar from processing (and thus signing).
        See Also:
        Constant Field Values
      • META_INF_ECLIPSE_INF

        private static final java.lang.String META_INF_ECLIPSE_INF
        Path of the eclispe.inf entry in a Jar
        See Also:
        Constant Field Values
      • DOT_JAR_GLOB_PATTERN

        static final java.lang.String DOT_JAR_GLOB_PATTERN
        Jar file extension.
        See Also:
        Constant Field Values
      • log

        private final org.apache.maven.plugin.logging.Log log
    • Constructor Detail

      • EclipseJarSignerFilter

        public EclipseJarSignerFilter​(org.apache.maven.plugin.logging.Log log)
    • Method Detail

      • shouldBeSigned

        public boolean shouldBeSigned​(java.nio.file.Path file)
                               throws java.io.IOException
        Specified by:
        shouldBeSigned in interface FilteredJarSigner.Filter
        Throws:
        java.io.IOException
      • isDisabledInEclipseInf

        private static boolean isDisabledInEclipseInf​(java.nio.file.Path file)
                                               throws java.io.IOException
        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
        java.io.IOException