creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r1405626 - in /creadur/rat/trunk: apache-rat-core/pom.xml apache-rat-plugin/pom.xml apache-rat-tasks/pom.xml pom.xml
Date Sun, 04 Nov 2012 20:08:49 GMT
Author: dennisl
Date: Sun Nov  4 20:08:48 2012
New Revision: 1405626

URL: http://svn.apache.org/viewvc?rev=1405626&view=rev
Log:
Move execution of apache-rat-plugin to a profile. Otherwise we would have to require Maven
3 to build Rat.

Modified:
    creadur/rat/trunk/apache-rat-core/pom.xml
    creadur/rat/trunk/apache-rat-plugin/pom.xml
    creadur/rat/trunk/apache-rat-tasks/pom.xml
    creadur/rat/trunk/pom.xml

Modified: creadur/rat/trunk/apache-rat-core/pom.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/pom.xml?rev=1405626&r1=1405625&r2=1405626&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/pom.xml (original)
+++ creadur/rat/trunk/apache-rat-core/pom.xml Sun Nov  4 20:08:48 2012
@@ -46,23 +46,40 @@
         </includes>
       </resource>
     </resources>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <!-- These files does not have license headers because they are used to test
license headers -->
-            <exclude>src/test/resources/elements/Source.java</exclude>
-            <exclude>src/test/resources/elements/sub/Empty.txt</exclude>
-            <exclude>src/test/resources/violations/bad.txt</exclude>
-            <exclude>src/test/resources/violations/FilterTest.cs</exclude>
-          </excludes>
-        </configuration>
-      </plugin>
-    </plugins>
   </build>
 
+
+  <profiles>
+    <profile>
+      <id>rat</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.rat</groupId>
+            <artifactId>apache-rat-plugin</artifactId>
+            <configuration>
+              <excludes>
+                <!-- These files does not have license headers because they are used to
test license headers -->
+                <exclude>src/test/resources/elements/Source.java</exclude>
+                <exclude>src/test/resources/elements/ILoggerFactory.java</exclude>
+                <exclude>src/test/resources/elements/sub/Empty.txt</exclude>
+                <exclude>src/test/resources/violations/bad.txt</exclude>
+                <exclude>src/test/resources/violations/FilterTest.cs</exclude>
+              </excludes>
+            </configuration>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
   <dependencies>
     <dependency>
       <groupId>commons-collections</groupId>

Modified: creadur/rat/trunk/apache-rat-plugin/pom.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/pom.xml?rev=1405626&r1=1405625&r2=1405626&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-plugin/pom.xml (original)
+++ creadur/rat/trunk/apache-rat-plugin/pom.xml Sun Nov  4 20:08:48 2012
@@ -115,21 +115,38 @@
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <!-- These files does not have license headers because they are used to test
license headers -->
-            <exclude>src/test/invoker/it1/src.apt</exclude>
-            <exclude>src/test/it2/src.txt</exclude>
-            <exclude>src/test/it3/src.apt</exclude>
-          </excludes>
-        </configuration>
-      </plugin>
     </plugins>
   </build>
 
+  <profiles>
+    <profile>
+      <id>rat</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.rat</groupId>
+            <artifactId>apache-rat-plugin</artifactId>
+            <configuration>
+              <excludes>
+                <!-- These files does not have license headers because they are used to
test license headers -->
+                <exclude>src/test/invoker/it1/src.apt</exclude>
+                <exclude>src/test/it2/src.txt</exclude>
+                <exclude>src/test/it3/src.apt</exclude>
+              </excludes>
+            </configuration>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
   <dependencies>
     <dependency>
       <groupId>org.apache.rat</groupId>

Modified: creadur/rat/trunk/apache-rat-tasks/pom.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-tasks/pom.xml?rev=1405626&r1=1405625&r2=1405626&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-tasks/pom.xml (original)
+++ creadur/rat/trunk/apache-rat-tasks/pom.xml Sun Nov  4 20:08:48 2012
@@ -119,16 +119,6 @@
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <!-- This file does not have license header because it is used to test license
headers -->
-            <exclude>src/test/resources/antunit/index.apt</exclude>
-          </excludes>
-        </configuration>
-      </plugin>
     </plugins>
     
     <pluginManagement>
@@ -161,4 +151,30 @@
     </pluginManagement>
   </build>
 
+  <profiles>
+    <profile>
+      <id>rat</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.rat</groupId>
+            <artifactId>apache-rat-plugin</artifactId>
+            <configuration>
+              <excludes>
+                <!-- This file does not have license header because it is used to test
license headers -->
+                <exclude>src/test/resources/antunit/index.apt</exclude>
+              </excludes>
+            </configuration>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Modified: creadur/rat/trunk/pom.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/pom.xml?rev=1405626&r1=1405625&r2=1405626&view=diff
==============================================================================
--- creadur/rat/trunk/pom.xml (original)
+++ creadur/rat/trunk/pom.xml Sun Nov  4 20:08:48 2012
@@ -312,16 +312,6 @@ agnostic home for software distribution 
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <!-- This file only describes how to build the project and it has no license
header -->
-            <exclude>BUILD.txt</exclude>
-          </excludes>
-        </configuration>
-      </plugin>
     </plugins>
     <extensions>
       <extension>
@@ -484,4 +474,33 @@ agnostic home for software distribution 
     <name>Apache Software Foundation</name>
     <url>http://www.apache.org</url>
   </organization>
+
+  <profiles>
+    <profile>
+      <id>rat</id>
+      <build>
+        <plugins>
+          <plugin>
+            <!-- We don't want this to propagate to the modules, because they all have
their own excludes -->
+            <inherited>false</inherited>
+            <groupId>org.apache.rat</groupId>
+            <artifactId>apache-rat-plugin</artifactId>
+            <configuration>
+              <excludes>
+                <!-- This file only describes how to build the project and it has no license
header -->
+                <exclude>BUILD.txt</exclude>
+              </excludes>
+            </configuration>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>
\ No newline at end of file



Mime
View raw message