Author: marnie(a)apache.org
Date: 2008-07-24 04:47:02 -0400 (Thu, 24 Jul 2008)
New Revision: 2213
Added:
store/branches/java/broker-queue-refactor/java/bdbstore/build.xml
Log:
ant build file for bdb
Added: store/branches/java/broker-queue-refactor/java/bdbstore/build.xml
===================================================================
--- store/branches/java/broker-queue-refactor/java/bdbstore/build.xml
(rev 0)
+++ store/branches/java/broker-queue-refactor/java/bdbstore/build.xml 2008-07-24 08:47:02
UTC (rev 2213)
@@ -0,0 +1,108 @@
+<!--
+ - Simple Build file for BDBStore
+ -->
+<project name="BDBStore" default="compile">
+
+ <property name="src.dir" location="src/main/java"/>
+ <property name="src.test.dir" location="src/test/java"/>
+ <property name="build.dir" location="build"/>
+ <property name="lib.dir" location="lib"/>
+ <property name="build.classes" location="build/classes"/>
+ <property name="build.test.classes"
location="build/test/classes"/>
+
+ <path id="class.path">
+ <fileset dir="lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <path id="test.class.path">
+ <path refid="class.path"/>
+ <pathelement path="${build.classes}"/>
+ </path>
+
+ <target name="init">
+ <mkdir dir="build/classes"/>
+ <mkdir dir="build/test/classes"/>
+ </target>
+
+ <target name="clean" description="remove build artifacts">
+ <delete dir="${build.dir}"/>
+ </target>
+
+ <target name="compile" depends="init">
+ <javac srcdir="${src.dir}"
+ destdir="${build.classes}"
+ classpathref="class.path"/>
+ </target>
+
+ <target name="compile-tests" depends="init,compile">
+ <javac srcdir="${src.test.dir}"
+ destdir="${build.test.classes}"
+ classpathref="test.class.path"/>
+ </target>
+
+ <target name="jar" depends="compile">
+ <jar destfile="build/qpid-bdbstore.jar"
basedir="build/classes"/>
+ </target>
+
+
+ <target name="test" depends="compile, compile-tests">
+
+ </target>
+
+
+ <target name="teststuff" depends="build,compile-tests"
if="module.test.src.exists"
+ unless="${dontruntest}" description="execute unit
tests">
+
+ <delete file="${module.failed}"/>
+
+ <junit fork="${test.fork}" maxmemory="${test.mem}"
reloading="no"
+ haltonfailure="${haltonfailure}"
haltonerror="${haltonerror}"
+ failureproperty="test.failures" printsummary="on"
timeout="600000" >
+
+ <sysproperty key="amqj.logging.level"
value="${amqj.logging.level}"/>
+ <sysproperty key="root.logging.level"
value="${root.logging.level}"/>
+ <sysproperty key="log4j.configuration"
value="${log4j.configuration}"/>
+ <sysproperty key="java.naming.factory.initial"
value="${java.naming.factory.initial}"/>
+ <sysproperty key="java.naming.provider.url"
value="${java.naming.provider.url}"/>
+ <sysproperty key="broker" value="${broker}"/>
+ <sysproperty key="broker.clean"
value="${broker.clean}"/>
+ <sysproperty key="broker.version"
value="${broker.version}"/>
+ <sysproperty key="broker.ready" value="${broker.ready}"
/>
+ <sysproperty key="test.excludes"
value="${test.excludes}"/>
+ <sysproperty key="test.excludesfile"
value="${test.excludesfile}"/>
+ <sysproperty key="max_prefetch" value
="${max_prefetch}"/>
+ <sysproperty key="example.plugin.target"
value="${project.root}/build/lib/plugins"/>
+ <sysproperty key="QPID_EXAMPLE_HOME"
value="${project.root}/broker"/>
+ <sysproperty key="QPID_HOME"
value="${project.root}/broker"/>
+
+ <formatter type="plain"/>
+ <formatter type="xml"/>
+
+ <classpath refid="module.test.path"/>
+
+ <batchtest fork="${test.fork}"
todir="${module.results}">
+ <fileset dir="${module.test.src}"
excludes="${module.test.excludes}">
+ <include name="**/${test}.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <antcall target="touch-failed"/>
+
+ <condition property="failed">
+ <and>
+ <isfalse value="${test.failures.ignore}"/>
+ <available file="${module.failed}"/>
+ </and>
+ </condition>
+
+ <fail if="failed" message="TEST SUITE FAILED"/>
+
+ </target>
+
+ <target name="release" depends="compile, jar"/>
+
+
+</project>
Property changes on: store/branches/java/broker-queue-refactor/java/bdbstore/build.xml
___________________________________________________________________
Name: svn:eol-style
+ native
Show replies by date