abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r627089 - in /incubator/abdera/java/trunk/adapters/jcr: ./ build.xml
Date Tue, 12 Feb 2008 20:34:44 GMT
Author: jmsnell
Date: Tue Feb 12 12:34:41 2008
New Revision: 627089

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

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

Propchange: incubator/abdera/java/trunk/adapters/jcr/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Feb 12 12:34:41 2008
@@ -1,6 +1,9 @@
-.settings
-repository
-target
-.classpath
-.project
-repository.xml
+.settings
+repository
+target
+.classpath
+.project
+repository.xml
+build
+lib
+*.jar

Added: incubator/abdera/java/trunk/adapters/jcr/build.xml
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/adapters/jcr/build.xml?rev=627089&view=auto
==============================================================================
--- incubator/abdera/java/trunk/adapters/jcr/build.xml (added)
+++ incubator/abdera/java/trunk/adapters/jcr/build.xml Tue Feb 12 12:34:41 2008
@@ -0,0 +1,51 @@
+<project name="jcr" 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://mirrors.ibiblio.org/pub/mirrors/maven2/javax/jcr/jcr/1.0/jcr-1.0.jar"
dest="${basedir}/lib/jcr-1.0.jar" usetimestamp="true" />
+      <get src="http://www.ibiblio.org/pub/mirrors/apache/jackrabbit/binaries/jackrabbit-api-1.4.jar"
dest="${basedir}/lib/jackrabbit-api-1.4.jar" usetimestamp="true" />
+      <get src="http://www.ibiblio.org/pub/mirrors/apache/jackrabbit/binaries/jackrabbit-core-1.4.jar"
dest="${basedir}/lib/jackrabbit-core-1.4.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">
+  </target>
+  
+  <target name="clean">
+    <delete dir="${basedir}/build" />
+    <delete file="${basedir}/${adapter.jar}" />
+    <delete file="${basedir}/${retro.adapter.jar}" />
+  </target>
+  
+</project>
\ No newline at end of file



Mime
View raw message