Author: buildbot
Date: Fri Jan  9 17:32:18 2015
New Revision: 935629

Log:
Staging update by buildbot for commons

Modified:
    websites/staging/commons/trunk/content/   (props changed)
    websites/staging/commons/trunk/content/building.html

Propchange: websites/staging/commons/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Jan  9 17:32:18 2015
@@ -1 +1 @@
-1650603
+1650607

Modified: websites/staging/commons/trunk/content/building.html
==============================================================================
--- websites/staging/commons/trunk/content/building.html (original)
+++ websites/staging/commons/trunk/content/building.html Fri Jan  9 17:32:18 
2015
@@ -275,10 +275,12 @@
 <h3><a name="Configuring_local_properties"></a>Configuring local 
properties</h3>
       
 <p>
-      You only need to configure local properties if you want to build using
-      different versions of Java.
-      See <a 
href="commons-parent-pom.html#Testing_with_different_Java_versions">here</a>
+      If you regularly want to build Commons components using a different 
version of Java
+      than that used to run Maven, you may wish to define the locations of the 
alternate
+      JDKs in the Maven <tt>settings.xml</tt> file.
+      See <a 
href="commons-parent-pom.html#Testing_with_different_Java_versions">testing 
with different Java versions</a>
       for more details.
+      Alternatively, you can provide the location of the alternate JDK as a 
property on the Maven command-line, see below.
       </p>
     </div> 
   </div>
@@ -289,6 +291,26 @@
 
     
 <div class="section">
+<h3><a name="Compile_and_test_with_a_specific_JDK"></a>Compile and test with a 
specific JDK</h3>
+      
+<p>
+        To compile and run a component's tests with JDK 1.5.
+        This assumes that the property JAVA_1_5_HOME has been defined in the 
Maven <tt>settings.xml</tt>
+      </p>
+      
+<div class="source">
+<pre>mvn clean test -Pjava-1.5</pre></div>
+      
+<p>
+        To compile source and test files with Java 1.6 if settings.xml does 
not contain the property definitions:
+      </p>
+      
+<div class="source">
+<pre>mvn clean compile test-compile -Pjava-1.6 
-DJAVA_1_6_HOME=path-to-jdk-home</pre></div>
+    </div> 
+
+    
+<div class="section">
 <h3><a name="Running_the_Tests"></a>Running the Tests</h3>
       
 <p>


Reply via email to