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) String
The file encoding of theNOTICE
file.(package private) String
private static final String
private static final String
(package private) String
(package private) String
(package private) String
(package private) String
(package private) String
(package private) String
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canTransformResource
(String resource) boolean
void
void
processResource
(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 theNOTICE
file. -
time
private long time -
NOTICE_PATH
- See Also:
-
NOTICE_TXT_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:ReproducibleResourceTransformer
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
-
hasTransformedResource
public boolean hasTransformedResource() -
modifyOutputStream
- Throws:
IOException
-