Author: ritchiem
Date: 2008-10-02 06:20:04 -0400 (Thu, 02 Oct 2008)
New Revision: 2569
Modified:
store/branches/java/broker-queue-refactor/java/bdbstore/build.xml
Log:
Added a release target that copies that goes to creating a release package that could be
formatted as a plugin for the broker. Currently it makes testing easier by locating the
built jars and the required runtime jars from lib
Modified: store/branches/java/broker-queue-refactor/java/bdbstore/build.xml
===================================================================
--- store/branches/java/broker-queue-refactor/java/bdbstore/build.xml 2008-10-01 20:56:11
UTC (rev 2568)
+++ store/branches/java/broker-queue-refactor/java/bdbstore/build.xml 2008-10-02 10:20:04
UTC (rev 2569)
@@ -9,6 +9,8 @@
<property name="src.test.dir" location="src/test/java"/>
<property name="build.dir" location="build"/>
<property name="lib.dir" location="lib"/>
+ <property name="release.dir" location="release"/>
+ <property name="release.lib.dir"
location="${release.dir}/lib"/>
<property name="build.classes" location="build/classes"/>
<property name="build.test.classes"
location="build/test/classes"/>
<property name="build.tools.classes"
location="build/tools/classes"/>
@@ -54,6 +56,7 @@
<target name="clean" description="remove build artifacts">
<delete dir="${build.dir}"/>
+ <delete dir="${release.dir}"/>
</target>
<target name="build"
depends="init,build-main,build-tools,build-tests"/>
@@ -141,6 +144,21 @@
</target>
- <target name="release" depends="jar"/>
+ <target name="release" depends="jar">
+ <mkdir dir="${release.dir}"/>
+ <mkdir dir="${release.lib.dir}"/>
+ <copy todir="${release.lib.dir}">
+ <fileset dir="${build.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ </copy>
+
+ <copy todir="${release.lib.dir}">
+ <fileset dir="${lib.dir}">
+ <include name="je*.jar"/>
+ </fileset>
+ </copy>
+ </target>
+
</project>