Package org.apache.rat.report.claim
Class LicenseAddingReport
java.lang.Object
org.apache.rat.report.claim.LicenseAddingReport
- All Implemented Interfaces:
RatReport
A Report that adds licenses text to files.
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseAddingReport(String copyrightMsg, boolean overwrite)Creates a LicenseAddingReport that inserts the copyright message and may overwrite the files. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.rat.report.RatReport
endReport, startReport
-
Constructor Details
-
LicenseAddingReport
Creates a LicenseAddingReport that inserts the copyright message and may overwrite the files.- Parameters:
copyrightMsg- The message to insert into the files. May benull.overwrite- iftruewill overwrite the files rather than create.newfiles.
-
-
Method Details
-
report
Description copied from interface:RatReportPerforms the actual reporting on the given document. Default implementation does nothing.- Specified by:
reportin interfaceRatReport- Parameters:
document- write any reporting results into this document upon analysis.- Throws:
RatException- on error.
-