diff options
author | Martin Ritchie <ritchiem@apache.org> | 2010-06-04 09:16:42 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2010-06-04 09:16:42 +0000 |
commit | 7b5a9bcd0462149a52d779dd7ebb3270b5db9391 (patch) | |
tree | b0523eb795742cc74cf0fc1b68a3e5b390618ead /qpid | |
parent | 55c585d4b7d6af2dbcaf30b1df01f8604a38d203 (diff) | |
download | qpid-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')
-rw-r--r-- | qpid/java/perftests/build.xml | 12 |
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"/> |