add missing licence headers or autogenerated notices where needed
git-svn-id: https://svn.apache.org/repos/asf/tiles/framework/trunk/tiles-autotag@1332830 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/maven-autotag-plugin/src/test/resources/META-INF/template-suite.xml b/maven-autotag-plugin/src/test/resources/META-INF/template-suite.xml
index 5785eb1..de0a133 100644
--- a/maven-autotag-plugin/src/test/resources/META-INF/template-suite.xml
+++ b/maven-autotag-plugin/src/test/resources/META-INF/template-suite.xml
@@ -1,3 +1,25 @@
+<!--
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ -->
<org.apache.tiles.autotag.model.TemplateSuite>
<name>test</name>
<templateClasses class="linked-hash-map">
diff --git a/pom.xml b/pom.xml
index c9d1c48..444155b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@
<parent>
<artifactId>tiles-master</artifactId>
<groupId>org.apache.tiles</groupId>
- <version>4-SNAPSHOT</version>
+ <version>4</version>
<relativePath/>
</parent>
<groupId>org.apache.tiles</groupId>
@@ -44,14 +44,6 @@
<system>JIRA</system>
<url>https://issues.apache.org/jira/browse/AUTOTAG</url>
</issueManagement>
- <repositories>
- <repository>
- <id>apache.snapshots</id>
- <url>https://repository.apache.org/snapshots</url>
- <releases><enabled>false</enabled></releases>
- <snapshots><enabled>true</enabled></snapshots>
- </repository>
- </repositories>
<modules>
<module>tiles-autotag-core-runtime</module>
@@ -140,11 +132,18 @@
<classNames>
<className>rat.analysis.license.ApacheSoftwareLicense20</className>
</classNames>
+ <classNames>
+ <className>rat.analysis.generation.GeneratedLicenseNotRequired</className>
+ </classNames>
</licenseMatchers>
<includes>
<include>pom.xml</include>
<include>src/**</include>
</includes>
+ <excludes>
+ <exclude>**/*LICENSE.txt</exclude>
+ <exclude>**/*MANIFEST.MF</exclude>
+ </excludes>
</configuration>
</execution>
</executions>
diff --git a/tiles-autotag-freemarker/src/main/resources/org/apache/tiles/autotag/freemarker/fmModel.vm b/tiles-autotag-freemarker/src/main/resources/org/apache/tiles/autotag/freemarker/fmModel.vm
index cc83fd8..ef8bdcf 100644
--- a/tiles-autotag-freemarker/src/main/resources/org/apache/tiles/autotag/freemarker/fmModel.vm
+++ b/tiles-autotag-freemarker/src/main/resources/org/apache/tiles/autotag/freemarker/fmModel.vm
@@ -1,6 +1,5 @@
-package ${packageName};
#*
- * $Id: tiles-jsp.tld 836180 2009-11-14 14:00:02Z apetrelli $
+ * $Id$
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,7 +17,11 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- *#
+ *#/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
+package ${packageName};
+
import java.io.IOException;
import java.util.Map;
diff --git a/tiles-autotag-freemarker/src/main/resources/org/apache/tiles/autotag/freemarker/repository.vm b/tiles-autotag-freemarker/src/main/resources/org/apache/tiles/autotag/freemarker/repository.vm
index 1a27083..20724c6 100644
--- a/tiles-autotag-freemarker/src/main/resources/org/apache/tiles/autotag/freemarker/repository.vm
+++ b/tiles-autotag-freemarker/src/main/resources/org/apache/tiles/autotag/freemarker/repository.vm
@@ -1,4 +1,3 @@
-package ${packageName};
#*
* $Id: tiles-jsp.tld 836180 2009-11-14 14:00:02Z apetrelli $
*
@@ -18,7 +17,11 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- *#
+ *#/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
+package ${packageName};
+
/**
#foreach($line in $stringTool.splitOnNewlines(${suite.documentation}))
* $line
diff --git a/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/DoStuffFMModel.javat b/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/DoStuffFMModel.javat
index 9d81a1d..73b7f8b 100644
--- a/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/DoStuffFMModel.javat
+++ b/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/DoStuffFMModel.javat
@@ -1,3 +1,6 @@
+/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
package org.apache.tiles.autotag.freemarker.test;
import java.io.IOException;
diff --git a/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/DoStuffNoBodyFMModel.javat b/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/DoStuffNoBodyFMModel.javat
index 375dcc3..076eaab 100644
--- a/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/DoStuffNoBodyFMModel.javat
+++ b/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/DoStuffNoBodyFMModel.javat
@@ -1,3 +1,6 @@
+/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
package org.apache.tiles.autotag.freemarker.test;
import java.io.IOException;
diff --git a/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/TldtestFMModelRepository.javat b/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/TldtestFMModelRepository.javat
index 36f2d63..4fe08ee 100644
--- a/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/TldtestFMModelRepository.javat
+++ b/tiles-autotag-freemarker/src/test/resources/org/apache/tiles/autotag/freemarker/test/TldtestFMModelRepository.javat
@@ -1,3 +1,6 @@
+/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
package org.apache.tiles.autotag.freemarker.test;
/**
diff --git a/tiles-autotag-jsp/src/main/resources/org/apache/tiles/autotag/jsp/bodyTag.vm b/tiles-autotag-jsp/src/main/resources/org/apache/tiles/autotag/jsp/bodyTag.vm
index 4c08334..b7d9ea1 100644
--- a/tiles-autotag-jsp/src/main/resources/org/apache/tiles/autotag/jsp/bodyTag.vm
+++ b/tiles-autotag-jsp/src/main/resources/org/apache/tiles/autotag/jsp/bodyTag.vm
@@ -1,4 +1,3 @@
-package ${packageName};
#*
* $Id: tiles-jsp.tld 836180 2009-11-14 14:00:02Z apetrelli $
*
@@ -18,7 +17,11 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- *#
+ *#/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
+package ${packageName};
+
import java.io.IOException;
import javax.servlet.jsp.JspException;
diff --git a/tiles-autotag-jsp/src/main/resources/org/apache/tiles/autotag/jsp/tld.vm b/tiles-autotag-jsp/src/main/resources/org/apache/tiles/autotag/jsp/tld.vm
index 33eac6a..9d4c0e9 100644
--- a/tiles-autotag-jsp/src/main/resources/org/apache/tiles/autotag/jsp/tld.vm
+++ b/tiles-autotag-jsp/src/main/resources/org/apache/tiles/autotag/jsp/tld.vm
@@ -19,6 +19,7 @@
* specific language governing permissions and limitations
* under the License.
*#
+<!-- This file was automatically generated by Apache Tiles Autotag. -->
<taglib
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
diff --git a/tiles-autotag-jsp/src/test/resources/org/apache/tiles/autotag/jsp/test/DoStuffNoBodyTag.java b/tiles-autotag-jsp/src/test/resources/org/apache/tiles/autotag/jsp/test/DoStuffNoBodyTag.java
index 03c7300..e5189c8 100644
--- a/tiles-autotag-jsp/src/test/resources/org/apache/tiles/autotag/jsp/test/DoStuffNoBodyTag.java
+++ b/tiles-autotag-jsp/src/test/resources/org/apache/tiles/autotag/jsp/test/DoStuffNoBodyTag.java
@@ -1,3 +1,6 @@
+/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
package org.apache.tiles.autotag.jsp.test;
import java.io.IOException;
diff --git a/tiles-autotag-jsp/src/test/resources/org/apache/tiles/autotag/jsp/test/DoStuffTag.java b/tiles-autotag-jsp/src/test/resources/org/apache/tiles/autotag/jsp/test/DoStuffTag.java
index 02c22ef..796b838 100644
--- a/tiles-autotag-jsp/src/test/resources/org/apache/tiles/autotag/jsp/test/DoStuffTag.java
+++ b/tiles-autotag-jsp/src/test/resources/org/apache/tiles/autotag/jsp/test/DoStuffTag.java
@@ -1,3 +1,6 @@
+/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
package org.apache.tiles.autotag.jsp.test;
import java.io.IOException;
diff --git a/tiles-autotag-jsp/src/test/resources/tldtest-jsp.tld b/tiles-autotag-jsp/src/test/resources/tldtest-jsp.tld
index 8f4f8f1..2db4ddc 100644
--- a/tiles-autotag-jsp/src/test/resources/tldtest-jsp.tld
+++ b/tiles-autotag-jsp/src/test/resources/tldtest-jsp.tld
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!-- This file was automatically generated by Apache Tiles Autotag. -->
<taglib
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
diff --git a/tiles-autotag-velocity/src/main/resources/org/apache/tiles/autotag/velocity/velocityDirective.vm b/tiles-autotag-velocity/src/main/resources/org/apache/tiles/autotag/velocity/velocityDirective.vm
index f628c37..f0bef91 100644
--- a/tiles-autotag-velocity/src/main/resources/org/apache/tiles/autotag/velocity/velocityDirective.vm
+++ b/tiles-autotag-velocity/src/main/resources/org/apache/tiles/autotag/velocity/velocityDirective.vm
@@ -1,4 +1,3 @@
-package ${packageName};
#*
* $Id: tiles-jsp.tld 836180 2009-11-14 14:00:02Z apetrelli $
*
@@ -18,7 +17,11 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- *#
+ *#/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
+package ${packageName};
+
import java.io.IOException;
import java.io.Writer;
diff --git a/tiles-autotag-velocity/src/main/resources/org/apache/tiles/autotag/velocity/velocityProperties.vm b/tiles-autotag-velocity/src/main/resources/org/apache/tiles/autotag/velocity/velocityProperties.vm
index dc4fea1..4fc1bb7 100644
--- a/tiles-autotag-velocity/src/main/resources/org/apache/tiles/autotag/velocity/velocityProperties.vm
+++ b/tiles-autotag-velocity/src/main/resources/org/apache/tiles/autotag/velocity/velocityProperties.vm
@@ -17,6 +17,6 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- *#
+ *## This file was automatically generated by Apache Tiles Autotag.
userdirective=#foreach($clazz in ${suite.getTemplateClasses()})#if($velocityCount > 1),\
#{end}${packageName}.${clazz.tagClassPrefix}Directive#end
diff --git a/tiles-autotag-velocity/src/test/resources/org/apache/tiles/autotag/velocity/test/DoStuffDirective.javat b/tiles-autotag-velocity/src/test/resources/org/apache/tiles/autotag/velocity/test/DoStuffDirective.javat
index 6572915..5caf980 100644
--- a/tiles-autotag-velocity/src/test/resources/org/apache/tiles/autotag/velocity/test/DoStuffDirective.javat
+++ b/tiles-autotag-velocity/src/test/resources/org/apache/tiles/autotag/velocity/test/DoStuffDirective.javat
@@ -1,3 +1,6 @@
+/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
package org.apache.tiles.autotag.velocity.test;
import java.io.IOException;
diff --git a/tiles-autotag-velocity/src/test/resources/org/apache/tiles/autotag/velocity/test/DoStuffNoBodyDirective.javat b/tiles-autotag-velocity/src/test/resources/org/apache/tiles/autotag/velocity/test/DoStuffNoBodyDirective.javat
index 2cd4308..88c9919 100644
--- a/tiles-autotag-velocity/src/test/resources/org/apache/tiles/autotag/velocity/test/DoStuffNoBodyDirective.javat
+++ b/tiles-autotag-velocity/src/test/resources/org/apache/tiles/autotag/velocity/test/DoStuffNoBodyDirective.javat
@@ -1,3 +1,6 @@
+/*
+ * This file was automatically generated by Apache Tiles Autotag.
+ */
package org.apache.tiles.autotag.velocity.test;
import java.io.IOException;
diff --git a/tiles-autotag-velocity/src/test/resources/velocity.properties.test b/tiles-autotag-velocity/src/test/resources/velocity.properties.test
index f2fc3b5..4d4051a 100644
--- a/tiles-autotag-velocity/src/test/resources/velocity.properties.test
+++ b/tiles-autotag-velocity/src/test/resources/velocity.properties.test
@@ -1,3 +1,3 @@
-
+# This file was automatically generated by Apache Tiles Autotag.
userdirective=org.apache.tiles.autotag.velocity.test.DoStuffDirective,\
org.apache.tiles.autotag.velocity.test.DoStuffNoBodyDirective
\ No newline at end of file