You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2011/11/02 18:04:39 UTC
svn commit: r1196694 - /commons/proper/commons-parent/trunk/pom.xml
Author: ggregory
Date: Wed Nov 2 17:04:39 2011
New Revision: 1196694
URL: http://svn.apache.org/viewvc?rev=1196694&view=rev
Log:
Add a profile for running the build using JDK 1.7.
Modified:
commons/proper/commons-parent/trunk/pom.xml
Modified: commons/proper/commons-parent/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?rev=1196694&r1=1196693&r2=1196694&view=diff
==============================================================================
--- commons/proper/commons-parent/trunk/pom.xml (original)
+++ commons/proper/commons-parent/trunk/pom.xml Wed Nov 2 17:04:39 2011
@@ -805,6 +805,20 @@
</properties>
</profile>
+ <!--
+ Profile for running the build using JDK 1.7
+ (JAVA_1_7_HOME needs to be defined, e.g. in settings.xml or an environment variable)
+ -->
+ <profile>
+ <id>java-1.7</id>
+ <properties>
+ <commons.compiler.fork>true</commons.compiler.fork>
+ <commons.compiler.compilerVersion>1.7</commons.compiler.compilerVersion>
+ <commons.compiler.javac>${JAVA_1_7_HOME}/bin/javac</commons.compiler.javac>
+ <commons.surefire.java>${JAVA_1_7_HOME}/bin/java</commons.surefire.java>
+ </properties>
+ </profile>
+
<!-- N.B. when adding new java profiles, be sure to update
the _removeheaders list in the maven_bundle_plugin configuration -->