incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r761953 - in /incubator/kato/trunk/org.apache.kato.api: ./ build.properties build.xml
Date Sat, 04 Apr 2009 14:59:44 GMT
Author: spoole
Date: Sat Apr  4 14:59:44 2009
New Revision: 761953

URL: http://svn.apache.org/viewvc?rev=761953&view=rev
Log:
updated kato api build script to pull down required junit binary dependency.  Dependencies
are stored in a directory called dependencies which has been added to svn ignore

Modified:
    incubator/kato/trunk/org.apache.kato.api/   (props changed)
    incubator/kato/trunk/org.apache.kato.api/build.properties
    incubator/kato/trunk/org.apache.kato.api/build.xml

Propchange: incubator/kato/trunk/org.apache.kato.api/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Apr  4 14:59:44 2009
@@ -1 +1,3 @@
 output
+
+dependencies

Modified: incubator/kato/trunk/org.apache.kato.api/build.properties
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.api/build.properties?rev=761953&r1=761952&r2=761953&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato.api/build.properties (original)
+++ incubator/kato/trunk/org.apache.kato.api/build.properties Sat Apr  4 14:59:44 2009
@@ -11,8 +11,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #-------------------------------------------------------------------------------
-kato.dependency.root=../KatoBinaryDependencies/lib
-junit.jar=${kato.dependency.root}/junit.jar
+dependencies=dependencies
+junit.jar.url=http://prdownloads.sourceforge.net/junit/junit4.1.zip?download
+junit.jar=${dependencies}/junit/junit4.1/junit-4.1.jar
 output=output
 dist=${output}/dist
 javadoc.output=${output}/javadoc

Modified: incubator/kato/trunk/org.apache.kato.api/build.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.api/build.xml?rev=761953&r1=761952&r2=761953&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato.api/build.xml (original)
+++ incubator/kato/trunk/org.apache.kato.api/build.xml Sat Apr  4 14:59:44 2009
@@ -34,6 +34,7 @@
          ================================= -->
 
 	<target name="default">
+		<antcall target="fetch.dependencies"/>
 		<antcall target="clean" />
 		<antcall target="compile" />
 		<antcall target="test" />
@@ -43,6 +44,20 @@
 
 	</target>
 
+	
+	<!-- 
+	   fetch required dependencies 
+	   In this case junit
+	-->
+	<target name="fetch.dependencies">
+	      <mkdir dir="${dependencies}"/>
+		  <mkdir dir="${dependencies}/junit"/>
+				
+		  <get dest="${dependencies}/junit/junit.zip" src="${junit.jar.url}" usetimestamp="true"
 />
+		  <unzip dest="${dependencies}/junit"  src="${dependencies}/junit/junit.zip"/>
+	</target>
+	
+	
 	<!-- remove compiled classes, jars etc-->
 
 	<target name="clean">



Mime
View raw message