summaryrefslogtreecommitdiff
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
commita8a04d986ca896c5ddd28579043cd52205bca1d3 (patch)
tree99788e8a82405ff4cd396508b610967f1c11a1fe
parent55d8ba0156e0d9f98876bfd194c1fd534e2b0aa5 (diff)
downloadqpid-python-a8a04d986ca896c5ddd28579043cd52205bca1d3.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/qpid@951334 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/perftests/build.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/java/perftests/build.xml b/java/perftests/build.xml
index b38201f5da..19cccb34a5 100644
--- a/java/perftests/build.xml
+++ b/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"/>