summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2012-09-19 13:26:39 +0000
committerKeith Wall <kwall@apache.org>2012-09-19 13:26:39 +0000
commit195d6175ef122cb8bd71ff2f6548c2f69820b71c (patch)
treeb8013a1925860560528bc626fa45525a43ebd77d /qpid/java
parentdb7133718a34e1b7a7a4b1328d223141fc7c6142 (diff)
downloadqpid-python-195d6175ef122cb8bd71ff2f6548c2f69820b71c.tar.gz
NO-JIRA: use uptodate to prevent management-http's dojo unwar happening unnecessarily
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1387583 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/broker-plugins/management-http/build.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/qpid/java/broker-plugins/management-http/build.xml b/qpid/java/broker-plugins/management-http/build.xml
index b792cb292e..1eab0b7083 100644
--- a/qpid/java/broker-plugins/management-http/build.xml
+++ b/qpid/java/broker-plugins/management-http/build.xml
@@ -43,7 +43,16 @@
<import file="../../module.xml" />
- <target name="precompile">
+ <!-- Flagfile used to determine if uwar needs to be done. ._ is part of Ant's defaultexcludes so wont appear bundles -->
+ <property name="dojo.uptodate.flagfile" value="${module.classes}/resources/dojo/._dojouptodate.timestamp"/>
+
+ <uptodate property="unwardojo.done"
+ targetfile="${dojo.uptodate.flagfile}"
+ srcfile="${project.root}/${dojo}"/>
+
+ <target name="precompile" depends="unwardojo"/>
+
+ <target name="unwardojo" unless="unwardojo.done">
<unwar src="${project.root}/${dojo}" dest="${module.classes}/resources/dojo">
<patternset>
<exclude name="META-INF/**"/>
@@ -51,6 +60,7 @@
<exclude name="**/*.uncompressed.js"/>
</patternset>
</unwar>
+ <touch file="${dojo.uptodate.flagfile}"/>
</target>
<target name="bundle" depends="bundle-tasks" />