in apache-rat-tasks/src/main/java/org/apache/rat/anttasks/Report.java [212:234]
private void validate() {
if (nestedResources == null) {
throw new BuildException("You must specify at least one file to"
+ " create the report for.");
}
if (!addDefaultLicenseMatchers && licenseMatchers.size() == 0) {
throw new BuildException("You must specify at least one license"
+ " matcher");
}
if (format.getValue().equals(Format.STYLED_KEY)) {
if (stylesheet == null) {
throw new BuildException("You must specify a stylesheet when"
+ " using the 'styled' format");
}
if (!stylesheet.isExists()) {
throw new BuildException("Cannot find specified stylesheet '"
+ stylesheet + "'");
}
} else if (stylesheet != null) {
log("Ignoring stylesheet '" + stylesheet + "' when using format '"
+ format.getValue() + "'", Project.MSG_WARN);
}
}