You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2008/03/03 00:41:28 UTC

svn commit: r632882 [4/7] - in /maven/enforcer/trunk: ./ enforcer-api/ enforcer-api/src/custom-rule-sample/ enforcer-api/src/custom-rule-sample/src/ enforcer-api/src/custom-rule-sample/src/main/java/org/apache/maven/enforcer/rule/ enforcer-api/src/main...

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/bannedDependencies.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/bannedDependencies.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/bannedDependencies.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/bannedDependencies.apt Sun Mar  2 15:41:23 2008
@@ -1,97 +1,97 @@
-~~ 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.    
- 
-  ------
-  Banned Dependencies
-  ------
-  Brian Fox
-  ------
-  November 2007
-  ------
-
-Banned Dependencies
-
-  This rule checks the dependencies and fails if any of the matching excludes are found.
-
-
-   The following parameters are supported by this rule:
-   
-   * searchTransitive - if transitive dependencies should be checked.
-   
-   * excludes - a list of artifacts to ban. The format is groupId[:artifactId][:version] where artifactId and version are optional. Wildcards may be used to replace an entire section.
-      Examples:
-       
-        *org.apache.maven
-        
-        *org.apache.maven:badArtifact
-        
-        *org.apache.maven:artifact:badVersion
-        
-        *org.apache.maven:*:1.2
-        
-        []
-		
-   * includes - a list of artifacts to include. These are exceptions to the excludes. It is meant to allow wide exclusion rules with wildcards and fine tune using includes. If nothing has been excluded, then the includes have no effect. In otherwords, includes only subtract from artifacts that matched an exclude rule.
-   
-   For example, to ban all xerces except xerces-api you would exclude "xerces" (groupId) and include "xerces:xerces-api"   
-   
-   * message - an optional message to the user if the rule fails.
-   
-   []
-
-   
-  Sample Plugin Configuration:
-  
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-banned-dependencies</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <bannedDependencies>
-                   <excludes>
-                      <exclude>org.apache.maven</exclude>
-                      <exclude>org.apache.maven:badArtifact</exclude>
-                      <exclude>*:badArtifact</exclude>
-                   </excludes>
-                   <includes>
-                      <!--only 1.0 of badArtifact is allowed-->
-                      <include>org.apache.maven:badArtifact:1.0</include>
-                   </includes>
-                </bannedDependencies>
-             </rules>  
-            <fail>true</fail>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
+~~ 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.    
+ 
+  ------
+  Banned Dependencies
+  ------
+  Brian Fox
+  ------
+  November 2007
+  ------
+
+Banned Dependencies
+
+  This rule checks the dependencies and fails if any of the matching excludes are found.
+
+
+   The following parameters are supported by this rule:
+   
+   * searchTransitive - if transitive dependencies should be checked.
+   
+   * excludes - a list of artifacts to ban. The format is groupId[:artifactId][:version] where artifactId and version are optional. Wildcards may be used to replace an entire section.
+      Examples:
+       
+        *org.apache.maven
+        
+        *org.apache.maven:badArtifact
+        
+        *org.apache.maven:artifact:badVersion
+        
+        *org.apache.maven:*:1.2
+        
+        []
+		
+   * includes - a list of artifacts to include. These are exceptions to the excludes. It is meant to allow wide exclusion rules with wildcards and fine tune using includes. If nothing has been excluded, then the includes have no effect. In otherwords, includes only subtract from artifacts that matched an exclude rule.
+   
+   For example, to ban all xerces except xerces-api you would exclude "xerces" (groupId) and include "xerces:xerces-api"   
+   
+   * message - an optional message to the user if the rule fails.
+   
+   []
+
+   
+  Sample Plugin Configuration:
+  
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-banned-dependencies</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <bannedDependencies>
+                   <excludes>
+                      <exclude>org.apache.maven</exclude>
+                      <exclude>org.apache.maven:badArtifact</exclude>
+                      <exclude>*:badArtifact</exclude>
+                   </excludes>
+                   <includes>
+                      <!--only 1.0 of badArtifact is allowed-->
+                      <include>org.apache.maven:badArtifact:1.0</include>
+                   </includes>
+                </bannedDependencies>
+             </rules>  
+            <fail>true</fail>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
 +---+

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/bannedDependencies.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/evaluateBeanshell.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/evaluateBeanshell.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/evaluateBeanshell.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/evaluateBeanshell.apt Sun Mar  2 15:41:23 2008
@@ -1,80 +1,80 @@
-~~ 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.    
- 
-  ------
-  Beanshell
-  ------
-  Brian Fox
-  ------
-  June 2007
-  ------
-
-Beanshell
-
-  This rule can execute a beanshell script and evaluate the result.
-
-
-   The following parameters are supported by this rule:
-   
-   * condition - the beanshell statement to evaluate.
-   
-   * message - an optional message to the user if the rule fails.
-   
-   []
-
-   
-  Sample Plugin Configuration:
-  
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-beanshell</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <evaluateBeanshell>
-		<condition>${project.artifactId} == foo</condition>
-	      </evaluateBeanshell>
-             </rules>  
-            <fail>true</fail>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
-+---+
-  
-  The condition can be a complex script or a simple expression. As long as it results in True, the rule will succeed. This means code can be executed as long as the last line results in true.
-  
-+---+
-  <evaluateBeanshell>
-    <condition>for (int i = 0;i!=10;i++){print ("Hello World "+i);};1==1</condition>
-  </evaluateBeanshell>
+~~ 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.    
+ 
+  ------
+  Beanshell
+  ------
+  Brian Fox
+  ------
+  June 2007
+  ------
+
+Beanshell
+
+  This rule can execute a beanshell script and evaluate the result.
+
+
+   The following parameters are supported by this rule:
+   
+   * condition - the beanshell statement to evaluate.
+   
+   * message - an optional message to the user if the rule fails.
+   
+   []
+
+   
+  Sample Plugin Configuration:
+  
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-beanshell</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <evaluateBeanshell>
+		<condition>${project.artifactId} == foo</condition>
+	      </evaluateBeanshell>
+             </rules>  
+            <fail>true</fail>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
++---+
+  
+  The condition can be a complex script or a simple expression. As long as it results in True, the rule will succeed. This means code can be executed as long as the last line results in true.
+  
++---+
+  <evaluateBeanshell>
+    <condition>for (int i = 0;i!=10;i++){print ("Hello World "+i);};1==1</condition>
+  </evaluateBeanshell>
 +---+

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/evaluateBeanshell.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/index.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/index.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/index.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/index.apt Sun Mar  2 15:41:23 2008
@@ -1,48 +1,48 @@
-~~ 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 Rules
-  ------
-  Brian Fox
-  ------
-  June 2007
-  ------
-
-Standard Rules
-
-	The following standard rules ship along with the enforcer plugin:
-	
-	
-	* {{{bannedDependencies.html}bannedDependencies}} - enforces that excluded dependencies aren't included.
-
-	* {{{evaluateBeanshell.html}evaluateBeanshell}} - evaluates a beanshell script.
-
-	* {{{requireReleaseDeps.html}requireReleaseDeps}} - enforces that no snapshots are included as dependencies.
-
-	* {{{requireMavenVersion.html}requireMavenVersion}} - enforces the Maven version.
-	
-	* {{{requireJavaVersion.html}requireJavaVersion}} - enforces the JDK version.
-	
-	* {{{requireOS.html}requireOS}} - enforces the OS / CPU Archictecture.
-	
-	* {{{requirePluginVersions.html}requirePluginVersions}} - enforces that all plugins have a specified version.
-	
-	* {{{requireProperty.html}requireProperty}} - enforces the existence and values of properties.
-	
-	[]
+~~ 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 Rules
+  ------
+  Brian Fox
+  ------
+  June 2007
+  ------
+
+Standard Rules
+
+	The following standard rules ship along with the enforcer plugin:
+	
+	
+	* {{{bannedDependencies.html}bannedDependencies}} - enforces that excluded dependencies aren't included.
+
+	* {{{evaluateBeanshell.html}evaluateBeanshell}} - evaluates a beanshell script.
+
+	* {{{requireReleaseDeps.html}requireReleaseDeps}} - enforces that no snapshots are included as dependencies.
+
+	* {{{requireMavenVersion.html}requireMavenVersion}} - enforces the Maven version.
+	
+	* {{{requireJavaVersion.html}requireJavaVersion}} - enforces the JDK version.
+	
+	* {{{requireOS.html}requireOS}} - enforces the OS / CPU Archictecture.
+	
+	* {{{requirePluginVersions.html}requirePluginVersions}} - enforces that all plugins have a specified version.
+	
+	* {{{requireProperty.html}requireProperty}} - enforces the existence and values of properties.
+	
+	[]
     You may also create and inject your own custom rules by following the {{{http://maven.apache.org/enforcer/enforcer-api/writing-a-custom-rule.html}maven-enforcer-rule-api}} instructions.

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/index.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/noSnapshots.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/noSnapshots.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/noSnapshots.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/noSnapshots.apt Sun Mar  2 15:41:23 2008
@@ -1,72 +1,72 @@
-~~ 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.    
- 
-  ------
-  Require Release Dependencies
-  ------
-  Brian Fox
-  ------
-  November 2007
-  ------
-
-Require Release Dependencies
-
-  This rule checks the dependencies and fails if any snapshots are found.
-
-
-   The following parameters are supported by this rule:
-   
-   * searchTransitive - if transitive dependencies should be checked.
-   
-   * message - an optional message to the user if the rule fails.
-   
-   []
-
-   
-  Sample Plugin Configuration:
-  
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-no-snapshots</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-               <requireReleaseDeps>
-                  <message>No Snapshots Allowed!</message>
-               </requireReleaseDeps>
-             </rules>  
-            <fail>true</fail>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
+~~ 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.    
+ 
+  ------
+  Require Release Dependencies
+  ------
+  Brian Fox
+  ------
+  November 2007
+  ------
+
+Require Release Dependencies
+
+  This rule checks the dependencies and fails if any snapshots are found.
+
+
+   The following parameters are supported by this rule:
+   
+   * searchTransitive - if transitive dependencies should be checked.
+   
+   * message - an optional message to the user if the rule fails.
+   
+   []
+
+   
+  Sample Plugin Configuration:
+  
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-no-snapshots</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+               <requireReleaseDeps>
+                  <message>No Snapshots Allowed!</message>
+               </requireReleaseDeps>
+             </rules>  
+            <fail>true</fail>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
 +---+

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/noSnapshots.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireJavaVersion.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireJavaVersion.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireJavaVersion.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireJavaVersion.apt Sun Mar  2 15:41:23 2008
@@ -1,94 +1,94 @@
-~~ 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.    
- 
-  ------
-  Require Java Version
-  ------
-  Brian Fox
-  ------
-  June 2007
-  ------
-
-Require Java Version
-
-   This rule enforces certain Java JDK versions. The rule uses the {{{versionRanges.html}Enforcer version range syntax}} to define allowed versions.
-
-   The following parameters are supported by this rule:
-   
-   * message - an optional message to the user if the rule fails.
-   
-   * {{{../apidocs/org/apache/maven/plugin/enforcer/AbstractVersionEnforcer.html#version}version}} - {{{versionRanges.html}range}} of allowed JDKs.
-   
-   []
-
-   The JDK version is retrieved and the following processing occurs before being checked:
-   
-  [[1]] Drop all non-numeric characters preceeding the first number. (build 1.5.0_07-b03 becomes 1.5.0_07-b03)
-  
-  [[2]] Replace all '_' and '-' with '.' (1.5.0_07-b03 becomes 1.5.0.07.b03)
-  
-  [[3]] Remove all non digit characters "[^0-9] and convert each section using Integer.parseInt() (1.5.0_07-b03 becomes 1.5.0.7.3)
-  
-  [[3]] Split the string on '.' and take the first 3 sections, separated by '.' and add '-' followed by the forth section (1.5.0.7.3 becomes 1.5.0-7)
-  
-  []
-   
-   This preprocessing normalizes various JDK version strings into a standard x.y.z-b version number. Your required range should therefore use the x.y.z-b format for comparison. 
-   There is an easy way to see how your current JDK string will be normalized:
-     
-+---+
-   mvn enforcer:display-info
-   ...
-   [enforcer:display-info]
-       Maven Version: 2.0.8
-       JDK Version: 1.5.0_11 normalized as: 1.5.0-11
-       OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
-+---+
-  
-   Sample Plugin Configuration:
-   
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-java</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <requireJavaVersion>
-                  <version>1.5.0</version>
-                </requireJavaVersion>
-              </rules>    
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
-+---+
+~~ 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.    
+ 
+  ------
+  Require Java Version
+  ------
+  Brian Fox
+  ------
+  June 2007
+  ------
+
+Require Java Version
+
+   This rule enforces certain Java JDK versions. The rule uses the {{{versionRanges.html}Enforcer version range syntax}} to define allowed versions.
+
+   The following parameters are supported by this rule:
+   
+   * message - an optional message to the user if the rule fails.
+   
+   * {{{../apidocs/org/apache/maven/plugin/enforcer/AbstractVersionEnforcer.html#version}version}} - {{{versionRanges.html}range}} of allowed JDKs.
+   
+   []
+
+   The JDK version is retrieved and the following processing occurs before being checked:
+   
+  [[1]] Drop all non-numeric characters preceeding the first number. (build 1.5.0_07-b03 becomes 1.5.0_07-b03)
+  
+  [[2]] Replace all '_' and '-' with '.' (1.5.0_07-b03 becomes 1.5.0.07.b03)
+  
+  [[3]] Remove all non digit characters "[^0-9] and convert each section using Integer.parseInt() (1.5.0_07-b03 becomes 1.5.0.7.3)
+  
+  [[3]] Split the string on '.' and take the first 3 sections, separated by '.' and add '-' followed by the forth section (1.5.0.7.3 becomes 1.5.0-7)
+  
+  []
+   
+   This preprocessing normalizes various JDK version strings into a standard x.y.z-b version number. Your required range should therefore use the x.y.z-b format for comparison. 
+   There is an easy way to see how your current JDK string will be normalized:
+     
++---+
+   mvn enforcer:display-info
+   ...
+   [enforcer:display-info]
+       Maven Version: 2.0.8
+       JDK Version: 1.5.0_11 normalized as: 1.5.0-11
+       OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
++---+
+  
+   Sample Plugin Configuration:
+   
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-java</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireJavaVersion>
+                  <version>1.5.0</version>
+                </requireJavaVersion>
+              </rules>    
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
++---+
   

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireJavaVersion.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireMavenVersion.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireMavenVersion.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireMavenVersion.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireMavenVersion.apt Sun Mar  2 15:41:23 2008
@@ -1,69 +1,69 @@
-~~ 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.    
- 
-  ------
-  Require Maven Version
-  ------
-  Brian Fox
-  ------
-  June 2007
-  ------
-
-Require Maven Version
-
-   This rule enforces certain Maven versions. The rule uses the {{{versionRanges.html}Enforcer version range syntax}} to define allowed versions.
-
-   The following parameters are supported by this rule:
-   
-   * message - an optional message to the user if the rule fails.
-   
-   * {{{../apidocs/org/apache/maven/plugin/enforcer/AbstractVersionEnforcer.html#version}version}} - {{{versionRanges.html}range}} of allowed Maven versions.
-   
-   []
-
-   Sample Plugin Configuration:
-   
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-java</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <requireMavenVersion>
-                  <version>2.0.6</version>
-                </requireMavenVersion>
-              </rules>    
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
+~~ 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.    
+ 
+  ------
+  Require Maven Version
+  ------
+  Brian Fox
+  ------
+  June 2007
+  ------
+
+Require Maven Version
+
+   This rule enforces certain Maven versions. The rule uses the {{{versionRanges.html}Enforcer version range syntax}} to define allowed versions.
+
+   The following parameters are supported by this rule:
+   
+   * message - an optional message to the user if the rule fails.
+   
+   * {{{../apidocs/org/apache/maven/plugin/enforcer/AbstractVersionEnforcer.html#version}version}} - {{{versionRanges.html}range}} of allowed Maven versions.
+   
+   []
+
+   Sample Plugin Configuration:
+   
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-java</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireMavenVersion>
+                  <version>2.0.6</version>
+                </requireMavenVersion>
+              </rules>    
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
 +---+  

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireMavenVersion.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireNoRepositories.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireNoRepositories.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireNoRepositories.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireNoRepositories.apt Sun Mar  2 15:41:23 2008
@@ -1,89 +1,89 @@
-~~ 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.    
- 
-  ------
-  Require No Repositories
-  ------
-  Brian Fox
-  ------
-  Novemer 2007
-  ------
-
-Require No Repositories
-
-   This rule enforces that all plugins have a version defined, either in the plugin or pluginManagement section of the pom or a parent pom.
-
-   The following parameters are supported by this rule:
-   
-   * message - an optional message to the user if the rule fails.
-   
-   * banLatest - disallow any use of "LATEST" as a version for any plugin. Default = true.
-   
-   * banRelease - disallow any use of "RELEASE" as a version for any plugin. Default = true.
-   
-   * banSnapshots - disallow any use of SNAPSHOT plugins. Default = true.
-   
-   * phases - The comma separated list of phases that should be used to find 
-     lifecycle plugin bindings. The default value is "clean,deploy,site".
-   
-   * additionalPlugins - A list of additional plugins to enforce have versions. These
-     are plugins that may not be in the poms but are used anyway, like help, eclipse etc.
-     The plugins should be specified in the form: group:artifactId.  
-     
-   
-   []
-
-   Sample Plugin Configuration (showing some defaults, defaults can be skipped):
-   
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-plugin-versions</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <requirePluginVersions>
-                   <message>Best Practice is to always define plugin versions!</message>
-                   <banLatest>true</banLatest>
-                   <banRelease>true</banRelease>
-                   <banSnapshots>true</banSnapshots>
-                   <phases>clean,deploy,site</phases>
-                   <additionalPlugins>
-                     <additionalPlugin>org.apache.maven.plugins:maven-eclipse-plugin</additionalPlugin>
-                     <additionalPlugin>org.apache.maven.plugins:maven-ide-plugin</additionalPlugin>
-                   </additionalPlugins>
-                </requirePluginVersions>
-              </rules>    
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
+~~ 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.    
+ 
+  ------
+  Require No Repositories
+  ------
+  Brian Fox
+  ------
+  Novemer 2007
+  ------
+
+Require No Repositories
+
+   This rule enforces that all plugins have a version defined, either in the plugin or pluginManagement section of the pom or a parent pom.
+
+   The following parameters are supported by this rule:
+   
+   * message - an optional message to the user if the rule fails.
+   
+   * banLatest - disallow any use of "LATEST" as a version for any plugin. Default = true.
+   
+   * banRelease - disallow any use of "RELEASE" as a version for any plugin. Default = true.
+   
+   * banSnapshots - disallow any use of SNAPSHOT plugins. Default = true.
+   
+   * phases - The comma separated list of phases that should be used to find 
+     lifecycle plugin bindings. The default value is "clean,deploy,site".
+   
+   * additionalPlugins - A list of additional plugins to enforce have versions. These
+     are plugins that may not be in the poms but are used anyway, like help, eclipse etc.
+     The plugins should be specified in the form: group:artifactId.  
+     
+   
+   []
+
+   Sample Plugin Configuration (showing some defaults, defaults can be skipped):
+   
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-plugin-versions</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requirePluginVersions>
+                   <message>Best Practice is to always define plugin versions!</message>
+                   <banLatest>true</banLatest>
+                   <banRelease>true</banRelease>
+                   <banSnapshots>true</banSnapshots>
+                   <phases>clean,deploy,site</phases>
+                   <additionalPlugins>
+                     <additionalPlugin>org.apache.maven.plugins:maven-eclipse-plugin</additionalPlugin>
+                     <additionalPlugin>org.apache.maven.plugins:maven-ide-plugin</additionalPlugin>
+                   </additionalPlugins>
+                </requirePluginVersions>
+              </rules>    
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
 +---+  

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireNoRepositories.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireOS.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireOS.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireOS.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireOS.apt Sun Mar  2 15:41:23 2008
@@ -1,143 +1,143 @@
-~~ 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.    
- 
-  ------
-  Require OS Version
-  ------
-  Brian Fox
-  ------
-  June 2007
-  ------
-
-Require OS Version
-
-  This rule can enforce certain values about the Operating System and processor architecture. 
-  The values and code used to determine if an OS is allowed are exactly the same as the OS Profile activation in Maven.
-
-
-   The following parameters are supported by this rule:
-
-   * message - an optional message to the user if the rule fails.
-   
-   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#arch}arch}} - the cpu architecture.
-   
-   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#family}family}} - the family of OS. Possible families are:
-   
-     * dos
-  
-     * mac
-  
-     * netware
-  
-     * os/2
-  
-     * tandem
-  
-     * unix
-  
-     * windows
-  
-     * win9x
-  
-     * z/os
-  
-     * os/400
-     
-     []
-   		
-   
-   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#name}name}} - the name of the OS.
-   
-   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#version}version}} - the version of the OS.
-   
-   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#display}display}} -  flag to display the detected OS informatin.
-   
-   []
-
- 
- Family is calculated based on testing against the name string retreived from the JDK. The name, arch and version values are retreived from the JDK using the following code:
-  
-+---+
-    public static final String OS_NAME = System.getProperty( "os.name" ).toLowerCase( Locale.US );
-
-    public static final String OS_ARCH = System.getProperty( "os.arch" ).toLowerCase( Locale.US );
-
-    public static final String OS_VERSION = System.getProperty( "os.version" ).toLowerCase( Locale.US );
-+---+
-   
-   Possible arch, name, and version values can be found here:
-   
-   * {{{http://lopica.sourceforge.net/os.html}lopica.sourceforge.net}}
-   
-   * {{{http://tolstoy.com/samizdat/sysprops.html}Sysprops}}
-   
-   []
-     
-   The various options are considered to be "and'd" together but any number can be specified. 
-   (ie family = windows means windows, but family = windows and arch = x86 means only windows on x86 processors)
-   
-   Any parameter may also be used in the negative by prepending a "!" in front of it. For example !dos means everything but dos. (who uses dos anyway?)
-   
-   Since the various names, versions and architecture values cannot be listed exhaustively, there is an easy way to display the 
-   information for the current system:
-   
-+---+
-   mvn enforcer:display-info
-   ...
-   [enforcer:display-info]
-       Maven Version: 2.0.6
-       JDK Version: 1.5.0_11 normalized as: 1.5.0
-       OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
-+---+
-  
-  Sample Plugin Configuration:
-  
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-os</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <requireOS>
-                  <name>Windows XP</name>
-                  <family>Windows</family>
-                  <arch>x86</arch>
-                  <version>5.1.2600</version>
-                </requireOS>
-             </rules>  
-            <fail>true</fail>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
-+---+
+~~ 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.    
+ 
+  ------
+  Require OS Version
+  ------
+  Brian Fox
+  ------
+  June 2007
+  ------
+
+Require OS Version
+
+  This rule can enforce certain values about the Operating System and processor architecture. 
+  The values and code used to determine if an OS is allowed are exactly the same as the OS Profile activation in Maven.
+
+
+   The following parameters are supported by this rule:
+
+   * message - an optional message to the user if the rule fails.
+   
+   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#arch}arch}} - the cpu architecture.
+   
+   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#family}family}} - the family of OS. Possible families are:
+   
+     * dos
+  
+     * mac
+  
+     * netware
+  
+     * os/2
+  
+     * tandem
+  
+     * unix
+  
+     * windows
+  
+     * win9x
+  
+     * z/os
+  
+     * os/400
+     
+     []
+   		
+   
+   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#name}name}} - the name of the OS.
+   
+   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#version}version}} - the version of the OS.
+   
+   * {{{../apidocs/org/apache/maven/plugin/enforcer/RequireOS.html#display}display}} -  flag to display the detected OS informatin.
+   
+   []
+
+ 
+ Family is calculated based on testing against the name string retreived from the JDK. The name, arch and version values are retreived from the JDK using the following code:
+  
++---+
+    public static final String OS_NAME = System.getProperty( "os.name" ).toLowerCase( Locale.US );
+
+    public static final String OS_ARCH = System.getProperty( "os.arch" ).toLowerCase( Locale.US );
+
+    public static final String OS_VERSION = System.getProperty( "os.version" ).toLowerCase( Locale.US );
++---+
+   
+   Possible arch, name, and version values can be found here:
+   
+   * {{{http://lopica.sourceforge.net/os.html}lopica.sourceforge.net}}
+   
+   * {{{http://tolstoy.com/samizdat/sysprops.html}Sysprops}}
+   
+   []
+     
+   The various options are considered to be "and'd" together but any number can be specified. 
+   (ie family = windows means windows, but family = windows and arch = x86 means only windows on x86 processors)
+   
+   Any parameter may also be used in the negative by prepending a "!" in front of it. For example !dos means everything but dos. (who uses dos anyway?)
+   
+   Since the various names, versions and architecture values cannot be listed exhaustively, there is an easy way to display the 
+   information for the current system:
+   
++---+
+   mvn enforcer:display-info
+   ...
+   [enforcer:display-info]
+       Maven Version: 2.0.6
+       JDK Version: 1.5.0_11 normalized as: 1.5.0
+       OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
++---+
+  
+  Sample Plugin Configuration:
+  
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-os</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireOS>
+                  <name>Windows XP</name>
+                  <family>Windows</family>
+                  <arch>x86</arch>
+                  <version>5.1.2600</version>
+                </requireOS>
+             </rules>  
+            <fail>true</fail>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
++---+
   

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireOS.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requirePluginVersions.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requirePluginVersions.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requirePluginVersions.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requirePluginVersions.apt Sun Mar  2 15:41:23 2008
@@ -1,89 +1,89 @@
-~~ 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.    
- 
-  ------
-  Require Plugin Versions
-  ------
-  Brian Fox
-  ------
-  Novemer 2007
-  ------
-
-Require Plugin Versions
-
-   This rule enforces that all plugins have a version defined, either in the plugin or pluginManagement section of the pom or a parent pom.
-
-   The following parameters are supported by this rule:
-   
-   * message - an optional message to the user if the rule fails.
-   
-   * banLatest - disallow any use of "LATEST" as a version for any plugin. Default = true.
-   
-   * banRelease - disallow any use of "RELEASE" as a version for any plugin. Default = true.
-   
-   * banSnapshots - disallow any use of SNAPSHOT plugins. Default = true.
-   
-   * phases - The comma separated list of phases that should be used to find 
-     lifecycle plugin bindings. The default value is "clean,deploy,site".
-   
-   * additionalPlugins - A list of additional plugins to enforce have versions. These
-     are plugins that may not be in the poms but are used anyway, like help, eclipse etc.
-     The plugins should be specified in the form: group:artifactId.  
-     
-   
-   []
-
-   Sample Plugin Configuration (showing some defaults, defaults can be skipped):
-   
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-plugin-versions</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <requirePluginVersions>
-                   <message>Best Practice is to always define plugin versions!</message>
-                   <banLatest>true</banLatest>
-                   <banRelease>true</banRelease>
-                   <banSnapshots>true</banSnapshots>
-                   <phases>clean,deploy,site</phases>
-                   <additionalPlugins>
-                     <additionalPlugin>org.apache.maven.plugins:maven-eclipse-plugin</additionalPlugin>
-                     <additionalPlugin>org.apache.maven.plugins:maven-ide-plugin</additionalPlugin>
-                   </additionalPlugins>
-                </requirePluginVersions>
-              </rules>    
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
+~~ 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.    
+ 
+  ------
+  Require Plugin Versions
+  ------
+  Brian Fox
+  ------
+  Novemer 2007
+  ------
+
+Require Plugin Versions
+
+   This rule enforces that all plugins have a version defined, either in the plugin or pluginManagement section of the pom or a parent pom.
+
+   The following parameters are supported by this rule:
+   
+   * message - an optional message to the user if the rule fails.
+   
+   * banLatest - disallow any use of "LATEST" as a version for any plugin. Default = true.
+   
+   * banRelease - disallow any use of "RELEASE" as a version for any plugin. Default = true.
+   
+   * banSnapshots - disallow any use of SNAPSHOT plugins. Default = true.
+   
+   * phases - The comma separated list of phases that should be used to find 
+     lifecycle plugin bindings. The default value is "clean,deploy,site".
+   
+   * additionalPlugins - A list of additional plugins to enforce have versions. These
+     are plugins that may not be in the poms but are used anyway, like help, eclipse etc.
+     The plugins should be specified in the form: group:artifactId.  
+     
+   
+   []
+
+   Sample Plugin Configuration (showing some defaults, defaults can be skipped):
+   
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-plugin-versions</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requirePluginVersions>
+                   <message>Best Practice is to always define plugin versions!</message>
+                   <banLatest>true</banLatest>
+                   <banRelease>true</banRelease>
+                   <banSnapshots>true</banSnapshots>
+                   <phases>clean,deploy,site</phases>
+                   <additionalPlugins>
+                     <additionalPlugin>org.apache.maven.plugins:maven-eclipse-plugin</additionalPlugin>
+                     <additionalPlugin>org.apache.maven.plugins:maven-ide-plugin</additionalPlugin>
+                   </additionalPlugins>
+                </requirePluginVersions>
+              </rules>    
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
 +---+  

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requirePluginVersions.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireProperty.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireProperty.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireProperty.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireProperty.apt Sun Mar  2 15:41:23 2008
@@ -1,79 +1,79 @@
-~~ 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.    
- 
-  ------
-  Require Property
-  ------
-  Brian Fox
-  ------
-  June 2007
-  ------
-
-Require Property
-
-  This rule can enforce that a declared property is set and optionally evaluate it against a regular expression.
-
-
-   The following parameters are supported by this rule:
-   
-   * property - the property to evaluate.
-   
-   * message - an optional message to the user if the rule fails. Default is: "Property 'xxx' is required for this build".	
-   
-   * regex - a regular expression used to check the value of the property.
-   
-   * regexMessage - an optional message to the user if the regex check fails.
-   
-   []
-
-  Sample Plugin Configuration:
-  
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-property</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <requireProperty>
-                  <property>basedir</property>
-                  <message>"You must have a basedir!"</message>
-                  <regex>"\d"</regex>
-                  <regexMessage>"You must have a digit in your baseDir!"</regexMessage>
-                </requireProperty>
-             </rules>  
-            <fail>true</fail>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
-+---+
-  
+~~ 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.    
+ 
+  ------
+  Require Property
+  ------
+  Brian Fox
+  ------
+  June 2007
+  ------
+
+Require Property
+
+  This rule can enforce that a declared property is set and optionally evaluate it against a regular expression.
+
+
+   The following parameters are supported by this rule:
+   
+   * property - the property to evaluate.
+   
+   * message - an optional message to the user if the rule fails. Default is: "Property 'xxx' is required for this build".	
+   
+   * regex - a regular expression used to check the value of the property.
+   
+   * regexMessage - an optional message to the user if the regex check fails.
+   
+   []
+
+  Sample Plugin Configuration:
+  
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-property</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireProperty>
+                  <property>basedir</property>
+                  <message>"You must have a basedir!"</message>
+                  <regex>"\d"</regex>
+                  <regexMessage>"You must have a digit in your baseDir!"</regexMessage>
+                </requireProperty>
+             </rules>  
+            <fail>true</fail>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
++---+
+  

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireProperty.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireReleaseDeps.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireReleaseDeps.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireReleaseDeps.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireReleaseDeps.apt Sun Mar  2 15:41:23 2008
@@ -1,72 +1,72 @@
-~~ 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.    
- 
-  ------
-  Require Release Dependencies
-  ------
-  Brian Fox
-  ------
-  November 2007
-  ------
-
-Require Release Dependencies
-
-  This rule checks the dependencies and fails if any snapshots are found.
-
-
-   The following parameters are supported by this rule:
-   
-   * searchTransitive - if transitive dependencies should be checked.
-   
-   * message - an optional message to the user if the rule fails.
-   
-   []
-
-   
-  Sample Plugin Configuration:
-  
-+---+
-<project>
-  [...]
-  <build>
-   <plugins>
-     <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <id>enforce-no-snapshots</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-               <requireReleaseDeps>
-                  <message>No Snapshots Allowed!</message>
-               </requireReleaseDeps>
-             </rules>  
-            <fail>true</fail>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  [...]
-</project>
+~~ 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.    
+ 
+  ------
+  Require Release Dependencies
+  ------
+  Brian Fox
+  ------
+  November 2007
+  ------
+
+Require Release Dependencies
+
+  This rule checks the dependencies and fails if any snapshots are found.
+
+
+   The following parameters are supported by this rule:
+   
+   * searchTransitive - if transitive dependencies should be checked.
+   
+   * message - an optional message to the user if the rule fails.
+   
+   []
+
+   
+  Sample Plugin Configuration:
+  
++---+
+<project>
+  [...]
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-no-snapshots</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+               <requireReleaseDeps>
+                  <message>No Snapshots Allowed!</message>
+               </requireReleaseDeps>
+             </rules>  
+            <fail>true</fail>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
 +---+

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/requireReleaseDeps.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/versionRanges.apt
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/versionRanges.apt?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/versionRanges.apt (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/versionRanges.apt Sun Mar  2 15:41:23 2008
@@ -1,54 +1,54 @@
-~~ 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.    
- 
-  ------
-  Version Range Specification
-  ------
-  Brian Fox
-  ------
-  May 2007
-  ------
-
-Version Range Specification   
-
-   The {{{requireMavenVersion.html}RequireMavenVersion}} and {{{requireJavaVersion.html}RequireJavaVersion}} rules use the {{{http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges}standard Maven version range syntax}} with one minor change for ease of use (denoted with *):
-   
-
-*----------*--------------+
-| Range    | Meaning      |
-*----------*--------------+
-| 1.0      | x \>\= 1.0 \* The default Maven meaning for 1.0 is everything (,) but with 1.0 recommended. Obviously this doesn't work for enforcing versions here, so it has been redefined as a minimum version.
-  |
-*----------*--------------+
-| (,1.0]   | x \<\= 1.0     |
-*----------*--------------+
-| (,1.0)   | x \< 1.0      |
-*----------*--------------+
-| [1.0]    | x \=\= 1.0     |
-*----------*--------------+
-| [1.0,)   | x \>\= 1.0     |
-*----------*--------------+
-| (1.0,)   | x \> 1.0      |
-*----------*--------------+
-| (1.0,2.0)| 1.0 \< x \< 2.0     |
-*----------*--------------+
-| [1.0,2.0]| 1.0 \<\= x \<\= 2.0     |
-*----------*--------------+
-| (,1.0],[1.2,)   |x \<\= 1.0 or x \>\= 1.2. Multiple sets are comma-separated |
-*----------*--------------+
-| (,1.1),(1.1,) |x !\= 1.1 |
-*----------*--------------+
+~~ 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.    
+ 
+  ------
+  Version Range Specification
+  ------
+  Brian Fox
+  ------
+  May 2007
+  ------
+
+Version Range Specification   
+
+   The {{{requireMavenVersion.html}RequireMavenVersion}} and {{{requireJavaVersion.html}RequireJavaVersion}} rules use the {{{http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges}standard Maven version range syntax}} with one minor change for ease of use (denoted with *):
+   
+
+*----------*--------------+
+| Range    | Meaning      |
+*----------*--------------+
+| 1.0      | x \>\= 1.0 \* The default Maven meaning for 1.0 is everything (,) but with 1.0 recommended. Obviously this doesn't work for enforcing versions here, so it has been redefined as a minimum version.
+  |
+*----------*--------------+
+| (,1.0]   | x \<\= 1.0     |
+*----------*--------------+
+| (,1.0)   | x \< 1.0      |
+*----------*--------------+
+| [1.0]    | x \=\= 1.0     |
+*----------*--------------+
+| [1.0,)   | x \>\= 1.0     |
+*----------*--------------+
+| (1.0,)   | x \> 1.0      |
+*----------*--------------+
+| (1.0,2.0)| 1.0 \< x \< 2.0     |
+*----------*--------------+
+| [1.0,2.0]| 1.0 \<\= x \<\= 2.0     |
+*----------*--------------+
+| (,1.0],[1.2,)   |x \<\= 1.0 or x \>\= 1.2. Multiple sets are comma-separated |
+*----------*--------------+
+| (,1.1),(1.1,) |x !\= 1.1 |
+*----------*--------------+

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/apt/rules/versionRanges.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/site/site.xml?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/site/site.xml (original)
+++ maven/enforcer/trunk/enforcer-rules/src/site/site.xml Sun Mar  2 15:41:23 2008
@@ -1,30 +1,30 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Copyright 2006 The Apache Software Foundation.
-  ~
-  ~ Licensed 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.
-  -->
-
-<project>
-  <body>
-    <menu name="Overview">
-      <item name="Introduction" href="index.html"/>
-      <item name="Standard Rules" href="rules/index.html"/>
-      <item name="Rule API" href="http://maven.apache.org/enforcer/enforcer-api/"/>
-      <item name="Enforcer Plugin" href="http://maven.apache.org/plugins/maven-enforcer-plugin/"/>
-    </menu>
-    <menu name="Custom Rules">
-          <item name="Writing a custom rule" href="http://maven.apache.org/enforcer/enforcer-api/writing-a-custom-rule.html"/>
-    </menu>
-  </body>
-</project>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed 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.
+  -->
+
+<project>
+  <body>
+    <menu name="Overview">
+      <item name="Introduction" href="index.html"/>
+      <item name="Standard Rules" href="rules/index.html"/>
+      <item name="Rule API" href="http://maven.apache.org/enforcer/enforcer-api/"/>
+      <item name="Enforcer Plugin" href="http://maven.apache.org/plugins/maven-enforcer-plugin/"/>
+    </menu>
+    <menu name="Custom Rules">
+          <item name="Writing a custom rule" href="http://maven.apache.org/enforcer/enforcer-api/writing-a-custom-rule.html"/>
+    </menu>
+  </body>
+</project>

Propchange: maven/enforcer/trunk/enforcer-rules/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/EnforcerTestUtils.java
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/EnforcerTestUtils.java?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/EnforcerTestUtils.java (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/EnforcerTestUtils.java Sun Mar  2 15:41:23 2008
@@ -1,82 +1,82 @@
-package org.apache.maven.plugins.enforcer;
-
-/*
- * 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.
- */
-
-import java.util.Date;
-import java.util.Properties;
-
-import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
-import org.apache.maven.execution.MavenSession;
-import org.apache.maven.model.Plugin;
-import org.apache.maven.plugin.logging.SystemStreamLog;
-import org.apache.maven.plugins.enforcer.utils.MockEnforcerExpressionEvaluator;
-import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator;
-
-/**
- * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
- */
-public class EnforcerTestUtils
-{
-    public static MavenSession getMavenSession()
-    {
-        return new MavenSession( new MockPlexusContainer(), null, null, null, null, null, null, new Properties(),
-                                 new Date() );
-    }
-
-    public static EnforcerRuleHelper getHelper()
-    {
-        return getHelper( new MockProject(), false );
-    }
-
-    public static EnforcerRuleHelper getHelper( boolean mockExpression )
-    {
-        return getHelper( new MockProject(), mockExpression );
-    }
-
-    public static EnforcerRuleHelper getHelper( MavenProject project )
-    {
-        return getHelper( project, false );
-    }
-    
-    public static EnforcerRuleHelper getHelper( MavenProject project, boolean mockExpression )
-    {
-        MavenSession session = getMavenSession();
-        ExpressionEvaluator eval;
-        if ( mockExpression )
-        {
-            eval = new MockEnforcerExpressionEvaluator( session, new MockPathTranslator(), project );
-        }
-        else
-        {
-            eval = new EnforcerExpressionEvaluator( session, new MockPathTranslator(), project );
-        }
-        return new DefaultEnforcementRuleHelper( session, eval, new SystemStreamLog(), null );
-    }
-
-    public static Plugin newPlugin( String groupId, String artifactId, String version )
-    {
-        Plugin plugin = new Plugin();
-        plugin.setArtifactId( artifactId );
-        plugin.setGroupId( groupId );
-        plugin.setVersion( version );
-        return plugin;
-    }
-}
+package org.apache.maven.plugins.enforcer;
+
+/*
+ * 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.
+ */
+
+import java.util.Date;
+import java.util.Properties;
+
+import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
+import org.apache.maven.execution.MavenSession;
+import org.apache.maven.model.Plugin;
+import org.apache.maven.plugin.logging.SystemStreamLog;
+import org.apache.maven.plugins.enforcer.utils.MockEnforcerExpressionEvaluator;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator;
+
+/**
+ * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
+ */
+public class EnforcerTestUtils
+{
+    public static MavenSession getMavenSession()
+    {
+        return new MavenSession( new MockPlexusContainer(), null, null, null, null, null, null, new Properties(),
+                                 new Date() );
+    }
+
+    public static EnforcerRuleHelper getHelper()
+    {
+        return getHelper( new MockProject(), false );
+    }
+
+    public static EnforcerRuleHelper getHelper( boolean mockExpression )
+    {
+        return getHelper( new MockProject(), mockExpression );
+    }
+
+    public static EnforcerRuleHelper getHelper( MavenProject project )
+    {
+        return getHelper( project, false );
+    }
+    
+    public static EnforcerRuleHelper getHelper( MavenProject project, boolean mockExpression )
+    {
+        MavenSession session = getMavenSession();
+        ExpressionEvaluator eval;
+        if ( mockExpression )
+        {
+            eval = new MockEnforcerExpressionEvaluator( session, new MockPathTranslator(), project );
+        }
+        else
+        {
+            eval = new EnforcerExpressionEvaluator( session, new MockPathTranslator(), project );
+        }
+        return new DefaultEnforcementRuleHelper( session, eval, new SystemStreamLog(), null );
+    }
+
+    public static Plugin newPlugin( String groupId, String artifactId, String version )
+    {
+        Plugin plugin = new Plugin();
+        plugin.setArtifactId( artifactId );
+        plugin.setGroupId( groupId );
+        plugin.setVersion( version );
+        return plugin;
+    }
+}

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/EnforcerTestUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/MockPathTranslator.java
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/MockPathTranslator.java?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/MockPathTranslator.java (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/MockPathTranslator.java Sun Mar  2 15:41:23 2008
@@ -1,58 +1,58 @@
-package org.apache.maven.plugins.enforcer;
-
-import java.io.File;
-
-import org.apache.maven.model.Model;
-import org.apache.maven.project.path.PathTranslator;
-
-/**
- * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
- * 
- */
-public class MockPathTranslator
-    implements PathTranslator
-{
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.maven.project.path.PathTranslator#alignToBaseDirectory(org.apache.maven.model.Model,
-     *      java.io.File)
-     */
-    public void alignToBaseDirectory( Model theModel, File theBasedir )
-    {
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.maven.project.path.PathTranslator#alignToBaseDirectory(java.lang.String,
-     *      java.io.File)
-     */
-    public String alignToBaseDirectory( String thePath, File theBasedir )
-    {
-        return theBasedir.getAbsolutePath();
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.maven.project.path.PathTranslator#unalignFromBaseDirectory(org.apache.maven.model.Model,
-     *      java.io.File)
-     */
-    public void unalignFromBaseDirectory( Model theModel, File theBasedir )
-    {
-    }
-
-    /*
-     * (non-Javadoc)
-     * 
-     * @see org.apache.maven.project.path.PathTranslator#unalignFromBaseDirectory(java.lang.String,
-     *      java.io.File)
-     */
-    public String unalignFromBaseDirectory( String theDirectory, File theBasedir )
-    {
-        return theBasedir.getAbsolutePath();
-    }
-
-}
+package org.apache.maven.plugins.enforcer;
+
+import java.io.File;
+
+import org.apache.maven.model.Model;
+import org.apache.maven.project.path.PathTranslator;
+
+/**
+ * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
+ * 
+ */
+public class MockPathTranslator
+    implements PathTranslator
+{
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.maven.project.path.PathTranslator#alignToBaseDirectory(org.apache.maven.model.Model,
+     *      java.io.File)
+     */
+    public void alignToBaseDirectory( Model theModel, File theBasedir )
+    {
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.maven.project.path.PathTranslator#alignToBaseDirectory(java.lang.String,
+     *      java.io.File)
+     */
+    public String alignToBaseDirectory( String thePath, File theBasedir )
+    {
+        return theBasedir.getAbsolutePath();
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.maven.project.path.PathTranslator#unalignFromBaseDirectory(org.apache.maven.model.Model,
+     *      java.io.File)
+     */
+    public void unalignFromBaseDirectory( Model theModel, File theBasedir )
+    {
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.maven.project.path.PathTranslator#unalignFromBaseDirectory(java.lang.String,
+     *      java.io.File)
+     */
+    public String unalignFromBaseDirectory( String theDirectory, File theBasedir )
+    {
+        return theBasedir.getAbsolutePath();
+    }
+
+}

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/MockPathTranslator.java
------------------------------------------------------------------------------
    svn:eol-style = native