summaryrefslogtreecommitdiff
path: root/qpid/java/perftests
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2010-06-04 09:16:42 +0000
committerMartin Ritchie <ritchiem@apache.org>2010-06-04 09:16:42 +0000
commit7b5a9bcd0462149a52d779dd7ebb3270b5db9391 (patch)
treeb0523eb795742cc74cf0fc1b68a3e5b390618ead /qpid/java/perftests
parent55c585d4b7d6af2dbcaf30b1df01f8604a38d203 (diff)
downloadqpid-python-7b5a9bcd0462149a52d779dd7ebb3270b5db9391.tar.gz
Only build perftest scripts if we have changed them. Shaves 14s of the build for me.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@951334 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/perftests')
-rw-r--r--qpid/java/perftests/build.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/qpid/java/perftests/build.xml b/qpid/java/perftests/build.xml
index b38201f5da..19cccb34a5 100644
--- a/qpid/java/perftests/build.xml
+++ b/qpid/java/perftests/build.xml
@@ -36,7 +36,16 @@
<isset property="result-path"/>
</condition>
- <target name="precompile">
+ <property name="scripts.timestamp" location="${build.scratch}/perftests/scripts.timestamp" />
+
+ <target name="check_scripts_uptodate">
+ <uptodate property="scripts.notRequired" targetfile="${scripts.timestamp}">
+ <srcfiles dir="${scripts.dir}" includes="**.sh" />
+ <srcfiles dir="${project.root}/perftests/" includes="scripts.xml" />
+ </uptodate>
+ </target>
+
+ <target name="precompile" depends="check_scripts_uptodate" unless="scripts.notRequired">
<mkdir dir="${scripts.dir}"/>
<jython path="${mllib.dir}">
<args>
@@ -45,6 +54,7 @@
<arg value="${scripts.dir}"/>
</args>
</jython>
+ <touch file="${scripts.timestamp}" />
</target>
<target name="all-tests" depends="all-queue-tests,all-topic-tests"/>