Author: sebb
Date: Mon Feb 21 16:53:30 2011
New Revision: 1073062
URL: http://svn.apache.org/viewvc?rev=1073062&view=rev
Log:
Does not make sense to report deprecation warnings
Compile with specific source and target versions
Modified:
commons/proper/math/branches/MATH_2_X/test-jar.xml
Modified: commons/proper/math/branches/MATH_2_X/test-jar.xml
URL:
http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/test-jar.xml?rev=1073062&r1=1073061&r2=1073062&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/test-jar.xml (original)
+++ commons/proper/math/branches/MATH_2_X/test-jar.xml Mon Feb 21 16:53:30 2011
@@ -30,6 +30,10 @@
-->
<project default="test" name="commons-math" basedir=".">
+ <!-- JDK level -->
+ <property name="compile.source" value="1.5"/>
+ <property name="compile.target" value="1.5"/>
+
<property name="defaulttargetdir" value="target"/>
<property name="testclassesdir" value="target/test-classes"/>
<property name="testreportdir" value="target/test-reports"/>
@@ -100,8 +104,14 @@
<target name="compile-tests" if="Junit.present" depends="junit-present">
<mkdir dir="${testclassesdir}"/>
- <javac destdir="${testclassesdir}" deprecation="true" debug="true"
- optimize="false" excludes="**/package.html">
+ <javac destdir="${testclassesdir}"
+ deprecation="false"
+ debug="true"
+ includeantruntime="false"
+ source="${compile.source}"
+ target="${compile.target}"
+ optimize="false"
+ excludes="**/package.html">
<src>
<pathelement location="src/test"/>
</src>