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
ConstructorDescriptionMinijarFilter
(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 TypeMethodDescriptionboolean
void
finished()
If we are finished.boolean
isFiltered
(String classFile)
-
Constructor Details
-
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 Details
-
canFilter
-
isFiltered
- Specified by:
isFiltered
in interfaceFilter
- 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.
-