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 | a8a04d986ca896c5ddd28579043cd52205bca1d3 (patch) | |
| tree | 99788e8a82405ff4cd396508b610967f1c11a1fe | |
| parent | 55d8ba0156e0d9f98876bfd194c1fd534e2b0aa5 (diff) | |
| download | qpid-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.xml | 12 |
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"/> |
