Package com.hazelcast.buildutils
Class HazelcastLicenseResourceTransformer
java.lang.Object
com.hazelcast.buildutils.HazelcastLicenseResourceTransformer
- All Implemented Interfaces:
org.apache.maven.plugins.shade.resource.ReproducibleResourceTransformer
,org.apache.maven.plugins.shade.resource.ResourceTransformer
public class HazelcastLicenseResourceTransformer
extends Object
implements org.apache.maven.plugins.shade.resource.ReproducibleResourceTransformer
Prevents duplicate copies of the Apache License.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canTransformResource
(String resource) boolean
void
void
processResource
(String resource, InputStream is, List<org.apache.maven.plugins.shade.relocation.Relocator> relocators) void
processResource
(String resource, InputStream is, List<org.apache.maven.plugins.shade.relocation.Relocator> relocators, long time)
-
Constructor Details
-
HazelcastLicenseResourceTransformer
public HazelcastLicenseResourceTransformer()
-
-
Method Details
-
canTransformResource
- Specified by:
canTransformResource
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
-
processResource
public void processResource(String resource, InputStream is, List<org.apache.maven.plugins.shade.relocation.Relocator> relocators, long time) throws IOException - Specified by:
processResource
in interfaceorg.apache.maven.plugins.shade.resource.ReproducibleResourceTransformer
- Throws:
IOException
-
hasTransformedResource
public boolean hasTransformedResource()- Specified by:
hasTransformedResource
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
-
modifyOutputStream
- Specified by:
modifyOutputStream
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
- Throws:
IOException
-
processResource
public void processResource(String resource, InputStream is, List<org.apache.maven.plugins.shade.relocation.Relocator> relocators) throws IOException - Specified by:
processResource
in interfaceorg.apache.maven.plugins.shade.resource.ResourceTransformer
- Throws:
IOException
-