You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/03/16 15:24:08 UTC

svn commit: r754904 - /commons/proper/exec/trunk/build.xml

Author: sebb
Date: Mon Mar 16 14:24:08 2009
New Revision: 754904

URL: http://svn.apache.org/viewvc?rev=754904&view=rev
Log:
Allow JUnit to be used from local repo

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=754904&r1=754903&r2=754904&view=diff
==============================================================================
--- commons/proper/exec/trunk/build.xml (original)
+++ commons/proper/exec/trunk/build.xml Mon Mar 16 14:24:08 2009
@@ -32,6 +32,10 @@
   <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
   <property name="maven.junit.jar" value="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"/>
 
+  <path id="junit">
+      <pathelement location="${maven.junit.jar}"/>
+  </path>
+
   <target name="clean" description="Clean the output directory">
     <delete dir="${maven.build.directory}"/>
   </target>
@@ -73,6 +77,7 @@
       <classpath>
         <pathelement location="${maven.build.output}"/>
         <pathelement location="${maven.test.output}"/>
+        <path refid="junit"/>
       </classpath>
       <batchtest todir="${maven.test.reports}">
         <fileset dir="${basedir}/src/test/java">
@@ -84,7 +89,7 @@
   </target>
 
   <target name="test-junit-present">
-    <available classname="junit.framework.Test" property="junit.present"/>
+    <available classname="junit.framework.Test" property="junit.present" classpathref="junit"/>
   </target>
 
   <target name="junit-present" depends="test-junit-present" unless="junit.present">