summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-02-01 01:25:27 +0000
committerRafael H. Schloming <rhs@apache.org>2008-02-01 01:25:27 +0000
commit3daff8e9098b22ef76463235add8130b39c8f611 (patch)
tree57ab144c4cd704dda2b6af2f0d87d5e61d5c44cf /qpid/java
parent1ea7ba4dedb90c0d697b544053bf5c617427a725 (diff)
downloadqpid-python-3daff8e9098b22ef76463235add8130b39c8f611.tar.gz
futzed with deps for faster build, and fixed bug in manifest generation
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@617321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/build.xml12
-rw-r--r--qpid/java/module.xml2
2 files changed, 9 insertions, 5 deletions
diff --git a/qpid/java/build.xml b/qpid/java/build.xml
index 33c09f09a8..cb43754435 100644
--- a/qpid/java/build.xml
+++ b/qpid/java/build.xml
@@ -29,6 +29,7 @@
<property name="modules" value="${modules.core} ${modules.tests} ${modules.management}"/>
<property name="qpid.jar" location="${build.lib}/qpid-incubating.jar"/>
+ <basename property="qpid.jar.name" file="${qpid.jar}"/>
<map property="release.excludes" value="${modules}">
<regexpmapper from="(.*)" to="\1/**"/>
@@ -81,14 +82,14 @@
<target name="check-manifest">
<uptodate property="manifest.done" targetfile="${qpid.jar}">
- <srcfiles dir="${build.lib}" includes="**/*.jar"/>
+ <srcfiles dir="${build.lib}" includes="**/*.jar" excludes="**/${qpid.jar.name}"/>
</uptodate>
</target>
- <target name="manifest" depends="jar,libs,check-manifest" unless="manifest.done">
+ <target name="manifest" depends="check-manifest" unless="manifest.done">
<manifestclasspath property="qpid.jar.classpath" jarfile="${qpid.jar}">
<classpath>
- <fileset dir="${build.lib}" includes="**/*.jar"/>
+ <fileset dir="${build.lib}" includes="**/*.jar" excludes="**/${qpid.jar.name}"/>
</classpath>
</manifestclasspath>
@@ -97,10 +98,13 @@
<attribute name="Class-Path" value="${qpid.jar.classpath}"/>
</manifest>
</jar>
+
+ <touch file="${qpid.jar}"/>
</target>
- <target name="build" depends="manifest" description="compile and copy resources into build tree">
+ <target name="build" description="build distribution">
<iterate target="build"/>
+ <antcall target="manifest"/>
</target>
<target name="prepare">
diff --git a/qpid/java/module.xml b/qpid/java/module.xml
index 7ac00e7b73..2aee7d964a 100644
--- a/qpid/java/module.xml
+++ b/qpid/java/module.xml
@@ -169,7 +169,7 @@
</junit>
</target>
- <target name="build" depends="compile" description="compile and copy resources into build tree">
+ <target name="build" depends="jar,libs" description="compile and copy resources into build tree">
<copy todir="${build.bin}" failonerror="false">
<fileset dir="${module.bin}"/>
</copy>