Class CustomReproducibleResourceTransformer
- java.lang.Object
-
- org.apache.maven.plugins.shade.custom.CustomReproducibleResourceTransformer
-
- All Implemented Interfaces:
ReproducibleResourceTransformer
,org.apache.maven.plugins.shade.resource.ResourceTransformer
public class CustomReproducibleResourceTransformer extends java.lang.Object implements ReproducibleResourceTransformer
Custom ReproducibleResourceTransformer for MSHADE-363_old-plugin IT, to check that it can be run with an older maven-shade-plugin that does not contain the ReproducibleResourceTransformer interface.
-
-
Constructor Summary
Constructors Constructor Description CustomReproducibleResourceTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTransformResource(java.lang.String resource)
boolean
hasTransformedResource()
void
modifyOutputStream(java.util.jar.JarOutputStream os)
void
processResource(java.lang.String resource, java.io.InputStream is, java.util.List<org.apache.maven.plugins.shade.relocation.Relocator> relocators)
old non-reproducible RessourceTransformer API that will be used by maven-shade-plugin up to 3.2.2.void
processResource(java.lang.String resource, java.io.InputStream is, java.util.List<org.apache.maven.plugins.shade.relocation.Relocator> relocators, long time)
new reproducible API
-
-
-
Method Detail
-
canTransformResource
public boolean canTransformResource(java.lang.String resource)
- Specified by:
canTransformResource
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
-
processResource
public final void processResource(java.lang.String resource, java.io.InputStream is, java.util.List<org.apache.maven.plugins.shade.relocation.Relocator> relocators) throws java.io.IOException
old non-reproducible RessourceTransformer API that will be used by maven-shade-plugin up to 3.2.2.- Specified by:
processResource
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
- Throws:
java.io.IOException
-
processResource
public void processResource(java.lang.String resource, java.io.InputStream is, java.util.List<org.apache.maven.plugins.shade.relocation.Relocator> relocators, long time) throws java.io.IOException
new reproducible API- Specified by:
processResource
in interfaceReproducibleResourceTransformer
- Throws:
java.io.IOException
-
hasTransformedResource
public boolean hasTransformedResource()
- Specified by:
hasTransformedResource
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
-
modifyOutputStream
public void modifyOutputStream(java.util.jar.JarOutputStream os) throws java.io.IOException
- Specified by:
modifyOutputStream
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
- Throws:
java.io.IOException
-
-