Interface ReproducibleResourceTransformer
- All Superinterfaces:
ResourceTransformer
- All Known Implementing Classes:
ApacheLicenseResourceTransformer,ApacheNoticeResourceTransformer,AppendingTransformer,ComponentsXmlResourceTransformer,DontIncludeResourceTransformer,GroovyResourceTransformer,IncludeResourceTransformer,ManifestResourceTransformer,MicroprofileConfigTransformer,OpenWebBeansPropertiesTransformer,PluginXmlResourceTransformer,PropertiesTransformer,ResourceBundleAppendingTransformer,ServicesResourceTransformer,SisuIndexResourceTransformer,XmlAppendingTransformer
Transform resource ensuring reproducible output: that requires to get the timestamp of
the initial resources to define in a reproducible way the timestamp of the transformed
resource.
- Since:
- 3.2.4
- Author:
- Hervé Boutemy
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessResource(String resource, InputStream is, List<Relocator> relocators, long time) Transform an individual resourceMethods inherited from interface org.apache.maven.plugins.shade.resource.ResourceTransformer
canTransformResource, hasTransformedResource, modifyOutputStream, processResource
-
Method Details
-
processResource
void processResource(String resource, InputStream is, List<Relocator> relocators, long time) throws IOException Transform an individual resource- Parameters:
resource- The resource nameis- An input stream for the resource, the implementation should *not* close this streamrelocators- A list of relocatorstime- the time of the resource to process- Throws:
IOException- When the IO blows up
-