Class ApacheNoticeResourceTransformer
java.lang.Object
org.apache.maven.plugins.shade.resource.AbstractCompatibilityTransformer
org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer
- All Implemented Interfaces:
ReproducibleResourceTransformer,ResourceTransformer
Merges
META-INF/NOTICE.TXT files.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) String(package private) StringThe file encoding of theNOTICEfile.(package private) Stringprivate static final Stringprivate static final Stringprivate static final String(package private) String(package private) String(package private) String(package private) String(package private) String(package private) Stringprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTransformResource(String resource) booleanvoidvoidprocessResource(String resource, InputStream is, List<Relocator> relocators, long time) Transform an individual resourceMethods inherited from class org.apache.maven.plugins.shade.resource.AbstractCompatibilityTransformer
processResource
-
Field Details
-
entries
-
organizationEntries
-
projectName
String projectName -
addHeader
boolean addHeader -
preamble1
String preamble1 -
preamble2
String preamble2 -
preamble3
String preamble3 -
organizationName
String organizationName -
organizationURL
String organizationURL -
inceptionYear
String inceptionYear -
copyright
String copyright -
encoding
String encodingThe file encoding of theNOTICEfile. -
time
private long time -
NOTICE_PATH
- See Also:
-
NOTICE_TXT_PATH
- See Also:
-
NOTICE_MD_PATH
- See Also:
-
-
Constructor Details
-
ApacheNoticeResourceTransformer
public ApacheNoticeResourceTransformer()
-
-
Method Details
-
canTransformResource
-
processResource
public void processResource(String resource, InputStream is, List<Relocator> relocators, long time) throws IOException Description copied from interface:ReproducibleResourceTransformerTransform 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
-
hasTransformedResource
public boolean hasTransformedResource() -
modifyOutputStream
- Throws:
IOException
-