Class DirectoryFilterProcessor
java.lang.Object
org.basepom.inline.transformer.processor.DirectoryFilterProcessor
- All Implemented Interfaces:
JarProcessor
Strips out the existing directories from the classpath. Directories are then re-added when the new jar is written. This ensures that no remnants of the old
class structure is present in the new jar.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.basepom.inline.transformer.JarProcessor
JarProcessor.Chain<T>, JarProcessor.Holder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpreScan(ClassPathResource classPathResource, JarProcessor.Chain<ClassPathResource> chain) process(ClassPathResource classPathResource, JarProcessor.Chain<ClassPathResource> chain) scan(ClassPathResource classPathResource, JarProcessor.Chain<ClassPathResource> chain)
-
Constructor Details
-
DirectoryFilterProcessor
public DirectoryFilterProcessor()
-
-
Method Details
-
preScan
@CheckForNull public ClassPathResource preScan(@Nonnull ClassPathResource classPathResource, JarProcessor.Chain<ClassPathResource> chain) throws IOException - Specified by:
preScanin interfaceJarProcessor- Throws:
IOException
-
scan
@CheckForNull public ClassPathResource scan(@Nonnull ClassPathResource classPathResource, JarProcessor.Chain<ClassPathResource> chain) throws IOException - Specified by:
scanin interfaceJarProcessor- Throws:
IOException
-
process
@CheckForNull public ClassPathResource process(@Nonnull ClassPathResource classPathResource, JarProcessor.Chain<ClassPathResource> chain) throws IOException - Specified by:
processin interfaceJarProcessor- Throws:
IOException
-