commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1003797 - /commons/proper/exec/trunk/build.xml
Date Sat, 02 Oct 2010 13:36:36 GMT
Author: sebb
Date: Sat Oct  2 13:36:36 2010
New Revision: 1003797

URL: http://svn.apache.org/viewvc?rev=1003797&view=rev
Log:
Make it easier to document and change compiler source and target

Modified:
    commons/proper/exec/trunk/build.xml

Modified: commons/proper/exec/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/build.xml?rev=1003797&r1=1003796&r2=1003797&view=diff
==============================================================================
--- commons/proper/exec/trunk/build.xml (original)
+++ commons/proper/exec/trunk/build.xml Sat Oct  2 13:36:36 2010
@@ -32,6 +32,9 @@
   <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
   <!-- JUnit version should agree with the version in pom.xml -->
   <property name="maven.junit.jar" value="${maven.repo.local}/junit/junit/3.8.2/junit-3.8.2.jar"/>
+  <!-- These must agree with the versions in pom.xml -->
+  <property name="maven.compile.source" value="1.3"/>
+  <property name="maven.compile.target" value="1.3"/>
 
   <path id="junit">
       <pathelement location="${maven.junit.jar}"/>
@@ -43,7 +46,8 @@
 
   <target name="compile" description="Compile the code">
     <mkdir dir="${maven.build.output}"/>
-    <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true"
optimize="false" source="1.3" target="1.3">
+    <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true"
optimize="false" 
+        source="${maven.compile.source}" target="${maven.compile.target}">
       <src>
         <pathelement location="${basedir}/src/main/java"/>
       </src>
@@ -56,7 +60,8 @@
 
   <target name="compile-tests" depends="junit-present, compile" description="Compile the
test code" if="junit.present">
     <mkdir dir="${maven.test.output}"/>
-    <javac destdir="${maven.test.output}" excludes="**/package.html" debug="true" deprecation="true"
optimize="false" source="1.3" target="1.3">
+    <javac destdir="${maven.test.output}" excludes="**/package.html" debug="true" deprecation="true"
optimize="false" 
+        source="${maven.compile.source}" target="${maven.compile.target}">
       <src>
         <pathelement location="${basedir}/src/test/java"/>
       </src>



Mime
View raw message