Class MinijarFilter
java.lang.Object
org.apache.maven.plugins.shade.filter.MinijarFilter
- All Implemented Interfaces:
Filter
A filter that prevents the inclusion of classes not required in the final jar.
-
Constructor Summary
ConstructorsConstructorDescriptionMinijarFilter(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log) MinijarFilter(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log, List<SimpleFilter> simpleFilters, Set<String> entryPoints) MinijarFilter(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log, Set<String> entryPoints) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfinished()If we are finished.booleanisFiltered(String classFile)
-
Constructor Details
-
MinijarFilter
public MinijarFilter(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log) throws IOException - Parameters:
project-MavenProjectlog-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-MavenProjectlog-LogentryPoints-- 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-MavenProjectlog-LogsimpleFilters-SimpleFilterentryPoints-- Throws:
IOException- in case of errors.- Since:
- 1.6
-
-
Method Details
-
canFilter
-
isFiltered
- Specified by:
isFilteredin interfaceFilter- Parameters:
classFile- The classFile.- Returns:
- true if the file has been filtered false otherwise.
-
finished
public void finished()Description copied from interface:FilterIf we are finished.
-