in apache-rat-core/src/main/java/org/apache/rat/annotation/ApacheV2LicenseAppender.java [54:95]
public String getLicenseHeader(File document) {
int type = getType(document);
StringBuilder sb = new StringBuilder();
if (copyright == null) {
sb.append(getFirstLine(type));
sb.append(getLine(type, "Licensed to the Apache Software Foundation (ASF) under one"));
sb.append(getLine(type, "or more contributor license agreements. See the NOTICE file"));
sb.append(getLine(type, "distributed with this work for additional information"));
sb.append(getLine(type, "regarding copyright ownership. The ASF licenses this file"));
sb.append(getLine(type, "to you under the Apache License, Version 2.0 (the"));
sb.append(getLine(type, "\"License\"); you may not use this file except in compliance"));
sb.append(getLine(type, "with the License. You may obtain a copy of the License at"));
sb.append(getLine(type, ""));
sb.append(getLine(type, " http://www.apache.org/licenses/LICENSE-2.0"));
sb.append(getLine(type, ""));
sb.append(getLine(type, "Unless required by applicable law or agreed to in writing,"));
sb.append(getLine(type, "software distributed under the License is distributed on an"));
sb.append(getLine(type, "\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY"));
sb.append(getLine(type, "KIND, either express or implied. See the License for the"));
sb.append(getLine(type, "specific language governing permissions and limitations"));
sb.append(getLine(type, "under the License."));
sb.append(getLastLine(type));
} else {
sb.append(getFirstLine(type));
sb.append(getLine(type, copyright));
sb.append(getLine(type, ""));
sb.append(getLine(type, "Licensed under the Apache License, Version 2.0 (the \"License\");"));
sb.append(getLine(type, "you may not use this file except in compliance with the License."));
sb.append(getLine(type, "You may obtain a copy of the License at"));
sb.append(getLine(type, ""));
sb.append(getLine(type, " http://www.apache.org/licenses/LICENSE-2.0"));
sb.append(getLine(type, ""));
sb.append(getLine(type, "Unless required by applicable law or agreed to in writing,"));
sb.append(getLine(type, "software distributed under the License is distributed on an"));
sb.append(getLine(type, "\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY"));
sb.append(getLine(type, "KIND, either express or implied. See the License for the"));
sb.append(getLine(type, "specific language governing permissions and limitations"));
sb.append(getLine(type, "under the License."));
sb.append(getLastLine(type));
}
return sb.toString();
}