Package org.apache.rat.annotation
Class ApacheV2LicenseAppender
java.lang.Object
org.apache.rat.annotation.AbstractLicenseAppender
org.apache.rat.annotation.ApacheV2LicenseAppender
Add an Apache License V2 license header to a
document. This appender does not check for the
existence of an existing license header, it is assumed that either a second
license header is intentional or that there is no license header present
already.
-
Constructor Summary
ConstructorDescriptionApacheV2LicenseAppender(Log log)
Create a license appender with the standard ASF license header.ApacheV2LicenseAppender(Log log, String copyright)
Create a license appender with the given copyright line. -
Method Summary
Methods inherited from class org.apache.rat.annotation.AbstractLicenseAppender
append, getFirstLine, getLastLine, getLine, getType, setForce
-
Constructor Details
-
ApacheV2LicenseAppender
Create a license appender with the standard ASF license header. -
ApacheV2LicenseAppender
Create a license appender with the given copyright line. This should be of the form "Copyright 2008 Foo"- Parameters:
copyright
- copyright line.
-
-
Method Details
-
getLicenseHeader
- Specified by:
getLicenseHeader
in classAbstractLicenseAppender
- Parameters:
document
- document to extract from.- Returns:
- Get the license header of a document.
-