abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r627064 - in /incubator/abdera/java/trunk/adapters/couchdb: ./ build.xml
Date Tue, 12 Feb 2008 20:03:10 GMT
Author: jmsnell
Date: Tue Feb 12 12:03:02 2008
New Revision: 627064

URL: http://svn.apache.org/viewvc?rev=627064&view=rev
Log:
ant build for the couchdb adapter

Added:
    incubator/abdera/java/trunk/adapters/couchdb/build.xml
Modified:
    incubator/abdera/java/trunk/adapters/couchdb/   (props changed)

Propchange: incubator/abdera/java/trunk/adapters/couchdb/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Feb 12 12:03:02 2008
@@ -1,3 +1,6 @@
 .classpath
 .project
 bin
+build
+lib
+*.jar

Added: incubator/abdera/java/trunk/adapters/couchdb/build.xml
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/adapters/couchdb/build.xml?rev=627064&view=auto
==============================================================================
--- incubator/abdera/java/trunk/adapters/couchdb/build.xml (added)
+++ incubator/abdera/java/trunk/adapters/couchdb/build.xml Tue Feb 12 12:03:02 2008
@@ -0,0 +1,59 @@
+<project name="couchdb" default="compile">
+
+  <property name="version" value="0.4.0-incubating-SNAPSHOT" />
+  <property name="adapter.jar" value="abdera.adapter.${ant.project.name}.${version}.jar"
/>
+  <property name="retro.adapter.jar" value="abdera.adapter.${ant.project.name}.${version}.retro.jar"
/>
+  <property name="debug" value="on" />
+  
+  <property name="abdera" value="../../dist" />
+  <path id="abdera">
+    <fileset dir="${abdera}" includes="**/*.jar" />
+  </path>
+  <path id="retro">
+    <fileset dir="../../build/tools/retroweaver-2.0" includes="**/*.jar" />
+  </path>
+
+  <target name="dependencies">
+    <mkdir dir="${basedir}/lib" />
+    <parallel>
+      <get src="http://internap.dl.sourceforge.net/sourceforge/json-lib/json-lib-2.2.1-jdk15.jar"
dest="${basedir}/lib/json-lib-2.2.1-jdk15.jar" usetimestamp="true" />
+      <get src="http://internap.dl.sourceforge.net/sourceforge/ezmorph/ezmorph-1.0.4.jar"
dest="${basedir}/lib/ezmorph-1.0.4.jar" usetimestamp="true" />
+      <get src="http://people.apache.org/repo/m1-ibiblio-rsync-repository/commons-beanutils/jars/commons-beanutils-1.7.0.jar"
dest="${basedir}/lib/commons-beanutils-1.7.0.jar" usetimestamp="true" />
+      <get src="http://people.apache.org/repo/m1-ibiblio-rsync-repository/commons-beanutils/jars/commons-beanutils-bean-collections-1.7.0.jar"
dest="${basedir}/lib/commons-beanutils-bean-collections-1.7.0.jar" usetimestamp="true" />
+      <get src="http://people.apache.org/repo/m1-ibiblio-rsync-repository/commons-collections/jars/commons-collections-3.2.jar"
dest="${basedir}/lib/commons-collections-3.2.jar" usetimestamp="true" />
+      <get src="http://people.apache.org/repo/m1-ibiblio-rsync-repository/commons-lang/jars/commons-lang-2.3.jar"
dest="${basedir}/lib/commons-lang-2.3.jar" usetimestamp="true" />
+      <get src="http://couchdb4j.googlecode.com/files/couchdb4j-0.1.2.jar" dest="${basedir}/lib/couchdb4j-0.1.2.jar"
usetimestamp="true" />
+    </parallel>
+    <path id="dependencies">
+      <fileset dir="${basedir}/lib" includes="**/*.jar" />
+      <path refid="abdera" />
+    </path>
+  </target>
+  
+  <target name="compile" depends="dependencies">
+    <mkdir dir="${basedir}/build" />
+    <javac srcdir="src/main/java" classpathref="dependencies" destdir="${basedir}/build"
debug="${debug}" />
+    <javac srcdir="src/test/java" classpathref="dependencies" destdir="${basedir}/build"
debug="${debug}" />
+    <copy todir="${basedir}/build">
+      <fileset dir="src/test/resources" includes="**/*" />
+    </copy>
+    <jar destfile="${basedir}/${adapter.jar}" basedir="${basedir}/build" includes="org/apache/abdera/protocol/server/adapters/**/*"
/>
+    <java classpathref="retro" classname="net.sourceforge.retroweaver.Weaver" fork="yes">
+      <arg line="-jar &quot;${basedir}/${adapter.jar}&quot; &quot;${basedir}/${retro.adapter.jar}&quot;"
/>
+    </java>
+  </target>
+  
+  <target name="test">
+    <!-- requires that couch db is running -->
+    <java classname="org.apache.abdera.protocol.server.test.couchdb.TestSuite"
+          classpath="${basedir}/build"
+          classpathref="dependencies"
+          fork="true" />
+  </target>
+  
+  <target name="clean">
+    <delete dir="${basedir}/build" />
+    <delete file="${basedir}/${adapter.jar}" />
+  </target>
+  
+</project>
\ No newline at end of file



Mime
View raw message