You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by ro...@apache.org on 2006/07/14 23:32:25 UTC

svn commit: r422060 - /incubator/abdera/java/trunk/build/build.xml

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>



Re: svn commit: r422060 - /incubator/abdera/java/trunk/build/build.xml

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 7/14/06, rooneg@apache.org <ro...@apache.org> wrote:
> 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.

This seems to work (as far as the ant build goes anyway) for me.
Someone who has a clue in that area should probably get the maven
stuff going though, I have no clue how to do that myself, so I'll
leave it to others.  Same with the eclipse stuff FWIW.

-garrett