Class MinijarFilter

  • All Implemented Interfaces:
    Filter

    public class MinijarFilter
    extends Object
    implements Filter
    A filter that prevents the inclusion of classes not required in the final jar.
    • Constructor Detail

      • MinijarFilter

        public MinijarFilter​(org.apache.maven.project.MavenProject project,
                             org.apache.maven.plugin.logging.Log log)
                      throws IOException
        Parameters:
        project - MavenProject
        log - Log
        Throws:
        IOException - in case of error.
      • MinijarFilter

        public MinijarFilter​(org.apache.maven.project.MavenProject project,
                             org.apache.maven.plugin.logging.Log log,
                             Set<String> entryPoints)
                      throws IOException
        Parameters:
        project - MavenProject
        log - Log
        entryPoints -
        Throws:
        IOException - in case of error.
      • MinijarFilter

        public MinijarFilter​(org.apache.maven.project.MavenProject project,
                             org.apache.maven.plugin.logging.Log log,
                             List<SimpleFilter> simpleFilters,
                             Set<String> entryPoints)
                      throws IOException
        Parameters:
        project - MavenProject
        log - Log
        simpleFilters - SimpleFilter
        entryPoints -
        Throws:
        IOException - in case of errors.
        Since:
        1.6
    • Method Detail

      • canFilter

        public boolean canFilter​(File jar)
        Specified by:
        canFilter in interface Filter
        Parameters:
        jar - The jar file.
        Returns:
        true if we can filter false otherwise.
      • isFiltered

        public boolean isFiltered​(String classFile)
        Specified by:
        isFiltered in interface Filter
        Parameters:
        classFile - The classFile.
        Returns:
        true if the file has been filtered false otherwise.
      • finished

        public void finished()
        Description copied from interface: Filter
        If we are finished.
        Specified by:
        finished in interface Filter