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 Details

    • HazelcastLicenseResourceTransformer

      public HazelcastLicenseResourceTransformer()
  • Method Details

    • canTransformResource

      public boolean canTransformResource(String resource)
      Specified by:
      canTransformResource in interface org.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 interface org.apache.maven.plugins.shade.resource.ReproducibleResourceTransformer
      Throws:
      IOException
    • hasTransformedResource

      public boolean hasTransformedResource()
      Specified by:
      hasTransformedResource in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
    • modifyOutputStream

      public void modifyOutputStream(JarOutputStream jos) throws IOException
      Specified by:
      modifyOutputStream in interface org.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 interface org.apache.maven.plugins.shade.resource.ResourceTransformer
      Throws:
      IOException