Class PluginXmlResourceTransformer
- java.lang.Object
-
- org.apache.maven.plugins.shade.resource.PluginXmlResourceTransformer
-
- All Implemented Interfaces:
ResourceTransformer
public class PluginXmlResourceTransformer extends Object implements ResourceTransformer
A resource processor that aggregates Mavenplugin.xml
files.- Since:
- 3.0
- Author:
- Robert Scholte
-
-
Field Summary
Fields Modifier and Type Field Description static String
PLUGIN_XML_PATH
-
Constructor Summary
Constructors Constructor Description PluginXmlResourceTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTransformResource(String resource)
boolean
hasTransformedResource()
void
modifyOutputStream(JarOutputStream jos)
void
processResource(String resource, InputStream is, List<Relocator> relocators)
Transform an individual resource
-
-
-
Field Detail
-
PLUGIN_XML_PATH
public static final String PLUGIN_XML_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
canTransformResource
public boolean canTransformResource(String resource)
- Specified by:
canTransformResource
in interfaceResourceTransformer
-
processResource
public void processResource(String resource, InputStream is, List<Relocator> relocators) throws IOException
Description copied from interface:ResourceTransformer
Transform an individual resource- Specified by:
processResource
in interfaceResourceTransformer
- Parameters:
resource
- The resoure nameis
- An input stream for the resource, the implementation should *not* close this streamrelocators
- A list of relocators- Throws:
IOException
- When the IO blows up
-
modifyOutputStream
public void modifyOutputStream(JarOutputStream jos) throws IOException
- Specified by:
modifyOutputStream
in interfaceResourceTransformer
- Throws:
IOException
-
hasTransformedResource
public boolean hasTransformedResource()
- Specified by:
hasTransformedResource
in interfaceResourceTransformer
-
-