abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r422060 - /incubator/abdera/java/trunk/build/build.xml
Date Fri, 14 Jul 2006 21:32:25 GMT
Author: rooneg
Date: Fri Jul 14 14:32:25 2006
New Revision: 422060

URL: http://svn.apache.org/viewvc?rev=422060&view=rev
Log:
Add some build glue for the new JSON dependencies.

* build/build.xml
  (dependencies.work,
   dependencies.src,
   dependencies.src.java,
   json.jar): New properties.
  (compile.dependencies): New target, builds the dependencies and jars up
   the json stuff.
  (compile.extensions): Depend on compile.dependencies.
  (clean): Remove new build artifacts.

Modified:
    incubator/abdera/java/trunk/build/build.xml

Modified: incubator/abdera/java/trunk/build/build.xml
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/build/build.xml?rev=422060&r1=422059&r2=422060&view=diff
==============================================================================
--- incubator/abdera/java/trunk/build/build.xml (original)
+++ incubator/abdera/java/trunk/build/build.xml Fri Jul 14 14:32:25 2006
@@ -50,12 +50,29 @@
   <property environment="env" />
       
   <property name="dependencies" value="${basedir}/dependencies" />
+  <property name="dependencies.work" value="${dependencies}/work" />
+  <property name="dependencies.src" value="${dependencies}/src" />
+  <property name="dependencies.src.java"
+            value="${dependencies.src}/main/java" />
+
+  <property name="json.jar" value="${dependencies}/json.jar" />
+
   <property file="${dependencies}/deps.properties" />
   
   <path id="jar.dependencies">
     <fileset dir="${dependencies}" includes="**/*.jar" />
   </path>
-  
+ 
+  <target name="compile.dependencies">
+    <mkdir dir="${dependencies.work}" />
+
+    <javac srcdir="${dependencies.src.java}" destdir="${dependencies.work}" />
+
+    <jar destfile="${json.jar}"
+         basedir="${dependencies.work}"
+         includes="org/json/*.class" />
+  </target>
+ 
   <target name="dependencies">
     <path id="">
       <fileset dir="dependencies" includes="*.jar" />
@@ -140,7 +157,7 @@
     </copy>
   </target>
   
-  <target name="compile.extensions" depends="init, compile.core, compile.parser">
+  <target name="compile.extensions" depends="init, compile.core, compile.parser, compile.dependencies">
     <mkdir dir="${extensions.work}" />
     <javac srcdir="${extensions.src}"
            destdir="${extensions.work}"
@@ -212,6 +229,8 @@
     <delete dir="${work}" />
     <delete dir="${test}" />
     <delete dir="${dist}" />
+    <delete dir="${dependencies.work}" />
+    <delete file="${json.jar}" />
     <delete> 
       <fileset dir="${basedir}" includes="*.zip" />
     </delete>



Mime
View raw message