Author: ritchiem
Date: Mon May 5 04:22:35 2008
New Revision: 653427
URL: http://svn.apache.org/viewvc?rev=653427&view=rev
Log:
QPID-998 : prevented warning about missing bin/etc directories in modules that
don't have bin or etc.
Modified:
incubator/qpid/trunk/qpid/java/module.xml
Modified: incubator/qpid/trunk/qpid/java/module.xml
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/module.xml?rev=653427&r1=653426&r2=653427&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/module.xml (original)
+++ incubator/qpid/trunk/qpid/java/module.xml Mon May 5 04:22:35 2008
@@ -26,6 +26,7 @@
<globmapper from="${project.root}${file.separator}*" to="*"/>
</map>
+ <echo message="Running ant for module : ${module}"/>
<property file="${project.root}/build.deps"/>
@@ -39,6 +40,10 @@
<property name="module.bin" location="bin"/>
<property name="module.etc" location="etc"/>
+ <available property="module.test.src.exists" file="${module.test.src}"/>
+ <available property="module.etc.exists" file="${module.etc}"/>
+ <available property="module.bin.exists" file="${module.bin}"/>
+
<map property="module.name" value="${module}">
<filtermapper>
<replacestring from="${file.separator}" to="-"/>
@@ -150,8 +155,6 @@
</copy>
</target>
- <available property="module.test.src.exists" file="${module.test.src}"/>
-
<target name="precompile-tests" if="module.test.src.exists"/>
<target name="compile-tests" depends="compile,precompile-tests"
if="module.test.src.exists"
@@ -218,16 +221,21 @@
</junit>
</target>
- <target name="build" depends="jar,libs" description="compile and copy
resources into build tree">
+
+ <target name="copy-bin" if="module.bin.exists" description="copy bin
directory if it exists to build tree">
<copy todir="${build.bin}" failonerror="false">
<fileset dir="${module.bin}"/>
</copy>
<chmod dir="${build.bin}" perm="ugo+rx" includes="**/*"/>
- <copy todir="${build.etc}" failonerror="false">
+ </target>
+
+ <target name="copy-etc" if="module.etc.exists" description="copy etc
directory if it exists to build tree">
+ <copy todir="${build.etc}" failonerror="false">
<fileset dir="${module.etc}"/>
</copy>
</target>
+ <target name="build" depends="jar,jar-tests,libs,copy-bin,copy-etc"
description="compile and copy resources into build tree"/>
<target name="jar.manifest" depends="compile" if="module.manifest">
<jar destfile="${module.jar}" basedir="${module.classes}"
manifest="${module.manifest}"/>
</target>