public class PropertiesMergingResourceTransformer
extends java.lang.Object
implements org.apache.maven.plugins.shade.resource.ResourceTransformer
Constructor and Description |
---|
PropertiesMergingResourceTransformer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canTransformResource(java.lang.String resource) |
java.util.Properties |
getData()
Return the data the properties being merged.
|
java.lang.String |
getResource() |
boolean |
hasTransformedResource() |
void |
modifyOutputStream(java.util.jar.JarOutputStream os) |
void |
processResource(java.lang.String resource,
java.io.InputStream inputStream,
java.util.List<org.apache.maven.plugins.shade.relocation.Relocator> relocators) |
void |
setResource(java.lang.String resource) |
public PropertiesMergingResourceTransformer()
public java.util.Properties getData()
public boolean canTransformResource(java.lang.String resource)
canTransformResource
in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
public void processResource(java.lang.String resource, java.io.InputStream inputStream, java.util.List<org.apache.maven.plugins.shade.relocation.Relocator> relocators) throws java.io.IOException
processResource
in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
java.io.IOException
public boolean hasTransformedResource()
hasTransformedResource
in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
public void modifyOutputStream(java.util.jar.JarOutputStream os) throws java.io.IOException
modifyOutputStream
in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
java.io.IOException
public java.lang.String getResource()
public void setResource(java.lang.String resource)