summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFraser Adams <fadams@apache.org>2013-04-19 11:58:13 +0000
committerFraser Adams <fadams@apache.org>2013-04-19 11:58:13 +0000
commit8ef67fe26a0c84e4322ac4ad70f2f6391a5491e7 (patch)
tree241144486824fd69de6495eb375537777f0ed5c8 /tools
parent8accc3e55484e35843c37e402798a9315cca23b9 (diff)
downloadqpid-python-8ef67fe26a0c84e4322ac4ad70f2f6391a5491e7.tar.gz
NO-JIRA: Trivial fix to build.xml in tools/src/java which was failing on cleanall target if plugins directory didn't actually exist
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1469793 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools')
-rw-r--r--tools/src/java/build.xml24
1 files changed, 20 insertions, 4 deletions
diff --git a/tools/src/java/build.xml b/tools/src/java/build.xml
index 1b19abd173..d1970604c1 100644
--- a/tools/src/java/build.xml
+++ b/tools/src/java/build.xml
@@ -225,17 +225,33 @@
<!-- =================================================================== -->
<!-- Removes everything except the sources enabling clean build. -->
<!-- =================================================================== -->
- <target name="cleanall" depends="clean">
+ <target name="cleanall" depends="clean, cleanplugin">
<delete includeemptydirs="true">
<fileset dir="." includes="**/*.*~ **/*~" defaultexcludes="no"/>
-
- <fileset dir="${qpid.lib.plugins}" includes="qpid-broker-plugins-management-qmf2.jar qmf2.jar"
- defaultexcludes="no"/>
</delete>
<delete dir="build"/>
<delete dir="docs"/>
</target>
+ <!-- =================================================================== -->
+ <!-- If plugins directory exists delete the plugin jars. -->
+ <!-- =================================================================== -->
+ <target name="cleanplugin" depends="test-for-plugin" if="dir.exists">
+ <delete includeemptydirs="true">
+ <fileset dir="${qpid.lib.plugins}" includes="qpid-broker-plugins-management-qmf2.jar qmf2.jar"
+ defaultexcludes="no"/>
+ </delete>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Test for the presence of the plugins directory. -->
+ <!-- =================================================================== -->
+ <target name="test-for-plugin">
+ <condition property="dir.exists">
+ <available file="${qpid.lib.plugins}" type="dir"/>
+ </condition>
+ </target>
+
</project>