Class PluginXmlResourceTransformer
- java.lang.Object
- 
- org.apache.maven.plugins.shade.resource.PluginXmlResourceTransformer
 
- 
- All Implemented Interfaces:
- ReproducibleResourceTransformer,- ResourceTransformer
 
 public class PluginXmlResourceTransformer extends java.lang.ObjectA resource processor that aggregates Mavenplugin.xmlfiles.- Since:
- 3.0
- Author:
- Robert Scholte
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringPLUGIN_XML_PATH
 - 
Constructor SummaryConstructors Constructor Description PluginXmlResourceTransformer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanTransformResource(java.lang.String resource)booleanhasTransformedResource()voidmodifyOutputStream(java.util.jar.JarOutputStream jos)voidprocessResource(java.lang.String resource, java.io.InputStream is, java.util.List<Relocator> relocators)Transform an individual resourcevoidprocessResource(java.lang.String resource, java.io.InputStream is, java.util.List<Relocator> relocators, long time)Transform an individual resource
 
- 
- 
- 
Field Detail- 
PLUGIN_XML_PATHpublic static final java.lang.String PLUGIN_XML_PATH - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
canTransformResourcepublic boolean canTransformResource(java.lang.String resource) 
 - 
processResourcepublic void processResource(java.lang.String resource, java.io.InputStream is, java.util.List<Relocator> relocators, long time) throws java.io.IOExceptionDescription copied from interface:ReproducibleResourceTransformerTransform an individual resource- Parameters:
- resource- The resource name
- is- An input stream for the resource, the implementation should *not* close this stream
- relocators- A list of relocators
- time- the time of the resource to process
- Throws:
- java.io.IOException- When the IO blows up
 
 - 
modifyOutputStreampublic void modifyOutputStream(java.util.jar.JarOutputStream jos) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
hasTransformedResourcepublic boolean hasTransformedResource() 
 - 
processResourcepublic final void processResource(java.lang.String resource, java.io.InputStream is, java.util.List<Relocator> relocators) throws java.io.IOExceptionDescription copied from interface:ResourceTransformerTransform an individual resource- Specified by:
- processResourcein interface- ResourceTransformer
- Parameters:
- resource- The resource name
- is- An input stream for the resource, the implementation should *not* close this stream
- relocators- A list of relocators
- Throws:
- java.io.IOException- When the IO blows up
 
 
- 
 
-