Author: ecki
Date: Sat Dec 20 11:18:55 2014
New Revision: 1646954

URL: http://svn.apache.org/r1646954
Log:
RAT Report: exclude trivial test resoures or add header

Modified:
    commons/proper/vfs/trunk/core/src/test/resources/test-data/test.policy
    commons/proper/vfs/trunk/pom.xml

Modified: commons/proper/vfs/trunk/core/src/test/resources/test-data/test.policy
URL: 
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/resources/test-data/test.policy?rev=1646954&r1=1646953&r2=1646954&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/resources/test-data/test.policy 
(original)
+++ commons/proper/vfs/trunk/core/src/test/resources/test-data/test.policy Sat 
Dec 20 11:18:55 2014
@@ -1,3 +1,19 @@
+// 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.
 
 // Standard extensions get all permissions by default
 
@@ -18,7 +34,7 @@ grant codeBase "file:${maven.build.dest}
 
 // default permissions granted to all domains
 
-grant { 
+grant {
     permission java.io.FilePermission "${test.basedir}/write-tests", "read, 
write, delete";
     permission java.io.FilePermission "${test.basedir}/write-tests/-", "read, 
write, delete";
     permission java.io.FilePermission "${test.basedir}/-", "read";

Modified: commons/proper/vfs/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/pom.xml?rev=1646954&r1=1646953&r2=1646954&view=diff
==============================================================================
--- commons/proper/vfs/trunk/pom.xml (original)
+++ commons/proper/vfs/trunk/pom.xml Sat Dec 20 11:18:55 2014
@@ -227,12 +227,42 @@
           
<commons.release.name>commons-${commons.componentid}-${commons.release.version}</commons.release.name>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <version>${commons.rat.version}</version>
+        <!-- Should agree with config in reporting section -->
+        <configuration>
+          <excludes combine.children="append">
+            <!--  trivial test data text files -->
+            <exclude>src/test/resources/test-data/**/*.txt</exclude>
+            <exclude>src/test/resources/test-data/test.mf</exclude>
+            <!--  implicite exclude does not work if sandbox profile is not 
activated -->
+            <exclude>sandbox/**</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
   <reporting>
     <plugins>
       <plugin>
+        <groupId>org.apache.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <version>${commons.rat.version}</version>
+        <!-- Should agree with config in build section -->
+        <configuration>
+          <excludes combine.children="append">
+            <!--  trivial test data text files -->
+            <exclude>src/test/resources/test-data/**/*.txt</exclude>
+            <exclude>src/test/resources/test-data/test.mf</exclude>
+            <!--  implicite exclude does not work if sandbox profile is not 
activated -->
+            <exclude>sandbox/**</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
+      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
         <version>2.13</version>


Reply via email to