commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1126456 - /commons/proper/scxml/trunk/build.xml
Date Mon, 23 May 2011 11:54:47 GMT
Author: sebb
Date: Mon May 23 11:54:47 2011
New Revision: 1126456

URL: http://svn.apache.org/viewvc?rev=1126456&view=rev
Log:
Add compiler source and target versions
Look for junit.jar where we dowloaded it.

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

Modified: commons/proper/scxml/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/build.xml?rev=1126456&r1=1126455&r2=1126456&view=diff
==============================================================================
--- commons/proper/scxml/trunk/build.xml (original)
+++ commons/proper/scxml/trunk/build.xml Mon May 23 11:54:47 2011
@@ -37,6 +37,8 @@
   </property>
   <property name="final.name" value="commons-scxml-0.10-SNAPSHOT">
   </property>
+  <property name="compile.source" value="1.4"/>
+  <property name="compile.target" value="1.4"/>
   <path id="build.classpath">
     <fileset dir="${libdir}">
       <include name="**/*.jar">
@@ -52,13 +54,13 @@
     </condition>
     <!--Test if JUNIT is present in ANT classpath-->
 
-    <available property="Junit.present" classname="junit.framework.Test">
+    <available property="Junit.present" classname="junit.framework.Test" classpath="${libdir}/junit-3.8.2.jar">
     </available>
   </target>
   <target name="compile" description="o Compile the code" depends="get-deps">
     <mkdir dir="${classesdir}">
     </mkdir>
-    <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
+    <javac source="${compile.source}" target="${compile.target}" destdir="${classesdir}"
deprecation="true" debug="true" optimize="false" excludes="**/package.html">
       <src>
         <pathelement location="src/main/java">
         </pathelement>
@@ -151,13 +153,13 @@
   </target>
   <target name="junit-present" unless="Junit.present" depends="init">
     <echo>================================= WARNING ================================</echo>
-    <echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo>
+    <echo>Junit isn't present on the classpath. Tests not executed.</echo>
     <echo>==========================================================================</echo>
   </target>
   <target name="compile-tests" if="Junit.present" depends="junit-present,compile">
     <mkdir dir="${testclassesdir}">
     </mkdir>
-    <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false"
excludes="**/package.html">
+    <javac source="${compile.source}" target="${compile.target}" destdir="${testclassesdir}"
deprecation="true" debug="true" optimize="false" excludes="**/package.html">
       <src>
         <pathelement location="src/test/java">
         </pathelement>



Mime
View raw message