commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1021545 - /commons/proper/pool/trunk/build.xml
Date Mon, 11 Oct 2010 23:28:35 GMT
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>



Mime
View raw message