db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1102636 - /db/derby/code/trunk/build.xml
Date Fri, 13 May 2011 09:48:45 GMT
Author: kahatlen
Date: Fri May 13 09:48:45 2011
New Revision: 1102636

URL: http://svn.apache.org/viewvc?rev=1102636&view=rev
Log:
DERBY-5200: embellish build.xml to automatically install junit.jar in the correct directory
if it doesn't exist

Patch contributed by Dave Brosius <dbrosius@apache.org>.

Modified:
    db/derby/code/trunk/build.xml

Modified: db/derby/code/trunk/build.xml
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/build.xml?rev=1102636&r1=1102635&r2=1102636&view=diff
==============================================================================
--- db/derby/code/trunk/build.xml (original)
+++ db/derby/code/trunk/build.xml Fri May 13 09:48:45 2011
@@ -53,6 +53,7 @@
 
   <target name="init" unless="init.done" depends="setInitialProperties">
 
+    <antcall target="install_junit"/>
     <tstamp/>
     <mkdir dir="${out.dir}"/>
     <antcall target="make-generated-dirs"/>
@@ -167,6 +168,20 @@
   </target>
 
 <!-- ==================================================================== -->
+<!--                     Download junit 3.8.2                             -->
+<!-- ==================================================================== -->
+
+
+   <!-- You can override this property in local.properties to fetch from an alternative
location -->
+   <property name="junit.url" value="http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar"/>

+   <target name="junit_check">
+       <available file="${basedir}/tools/java/junit.jar" property="junit.exists"/>
+   </target>
+   <target name="install_junit" depends="junit_check" unless="junit.exists" description="installs
junit.jar into derby">
+       <get src="${junit.url}" dest="${basedir}/tools/java/junit.jar" verbose="true" ignoreerrors="true"/>
+   </target>
+
+<!-- ==================================================================== -->
 <!--                     Build version info files                         -->
 <!-- ==================================================================== -->
 



Mime
View raw message