summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2011-11-30 16:06:30 +0000
committerRobert Gemmell <robbie@apache.org>2011-11-30 16:06:30 +0000
commit2705ed6c470ab31fbf0f5f3277b3835e1d85bac3 (patch)
tree2cc90ec04f17f1127235be4195d7155d1d12d5fb /java
parent77ae6cf05e587d42d6ad98fa86be6fe4363e0285 (diff)
downloadqpid-python-2705ed6c470ab31fbf0f5f3277b3835e1d85bac3.tar.gz
NO-JIRA: copy optional module scripts if the module is requested
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1208479 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/broker/build.xml18
1 files changed, 15 insertions, 3 deletions
diff --git a/java/broker/build.xml b/java/broker/build.xml
index 0731e08103..090df101f0 100644
--- a/java/broker/build.xml
+++ b/java/broker/build.xml
@@ -72,14 +72,26 @@
<fixcrlf srcdir="${module.release}/bin" fixlast="true" eol="dos" includes="*.bat"/>
</target>
- <target name="release-bin-other" description="copy broker-plugins into module release">
+ <target name="release-bin-other" depends="release-bin-other-bdbstore" description="copy broker-plugins into module release">
<copy todir="${module.release}/lib/plugins" failonerror="true">
<fileset dir="${build.lib}/plugins"/>
</copy>
- <!--copy optional bdbstore module if it exists -->
- <copy todir="${module.release}/lib/" failonerror="false">
+ </target>
+
+ <target name="release-bin-other-bdbstore" depends="check-bdbstore-requested" if="bdbstore-requested"
+ description="copy bdbstore items into module release">
+ <copy todir="${module.release}/lib/" failonerror="true">
<fileset file="${build.lib}/${project.name}-bdbstore-${project.version}.jar"/>
</copy>
+ <copy todir="${module.release}/bin" failonerror="true" flatten="true">
+ <fileset dir="${basedir}/../bdbstore/bin"/>
+ </copy>
+ </target>
+
+ <target name="check-bdbstore-requested">
+ <condition property="bdbstore-requested">
+ <contains string="${modules.opt}" substring="bdbstore"/>
+ </condition>
</target>
<target name="release-bin" depends="release-bin-tasks"/>