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 2010/10/12 01:28:35 UTC

svn commit: r1021545 - /commons/proper/pool/trunk/build.xml

Author: ggregory
Date: Mon Oct 11 23:28:35 2010
New Revision: 1021545

URL: http://svn.apache.org/viewvc?rev=1021545&view=rev
Log:
Fix Ant build to use Junit jar from M2 local repository. Shall we use Ivy for Ant builds?

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

Modified: commons/proper/pool/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/build.xml?rev=1021545&r1=1021544&r2=1021545&view=diff
==============================================================================
--- commons/proper/pool/trunk/build.xml (original)
+++ commons/proper/pool/trunk/build.xml Mon Oct 11 23:28:35 2010
@@ -32,6 +32,14 @@
       <property name="user-propfile" value="${user.home}/build.properties"/>
       <property file="${user-propfile}"/>
 
+      <!-- Repository base path -->
+      <property name="repository" value="${user.home}/.m2/repository"/>
+
+      <!-- The directories corresponding to your necessary dependencies -->
+      <property name="junit.version" value="4.8.1"/>
+      <property name="junit.home" value="${repository}/junit/junit/${junit.version}"/>
+      <property name="junit.jar" value="${junit.home}/junit-${junit.version}.jar"/>
+
       <!-- command line classpath, if any -->
       <property name="cp" value=""/>
 
@@ -125,6 +133,7 @@
           <pathelement location="${build.classes.dir}" /> 
           <pathelement location="${build.test-classes.dir}" /> 
           <pathelement path="${classpath}" /> 
+          <pathelement location="${junit.jar}"/>
         </classpath>
       </javac>
    </target>