org.apache.maven.plugins.shade.resource
Class IncludeResourceTransformer

java.lang.Object
  extended by org.apache.maven.plugins.shade.resource.IncludeResourceTransformer
All Implemented Interfaces:
ResourceTransformer

public class IncludeResourceTransformer
extends Object
implements ResourceTransformer

A resource processor that allows the addition of an arbitrary file content into the shaded JAR.


Constructor Summary
IncludeResourceTransformer()
           
 
Method Summary
 boolean canTransformResource(String r)
           
 boolean hasTransformedResource()
           
 void modifyOutputStream(JarOutputStream jos)
           
 void processResource(String resource, InputStream is, List relocators)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncludeResourceTransformer

public IncludeResourceTransformer()
Method Detail

canTransformResource

public boolean canTransformResource(String r)
Specified by:
canTransformResource in interface ResourceTransformer

processResource

public void processResource(String resource,
                            InputStream is,
                            List relocators)
                     throws IOException
Specified by:
processResource in interface ResourceTransformer
Throws:
IOException

hasTransformedResource

public boolean hasTransformedResource()
Specified by:
hasTransformedResource in interface ResourceTransformer

modifyOutputStream

public void modifyOutputStream(JarOutputStream jos)
                        throws IOException
Specified by:
modifyOutputStream in interface ResourceTransformer
Throws:
IOException


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.