aboutsummaryrefslogtreecommitdiffstats
path: root/build/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build/build.xml')
-rw-r--r--build/build.xml15
1 files changed, 12 insertions, 3 deletions
diff --git a/build/build.xml b/build/build.xml
index 28dd36bea8..cd7f8594d4 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -162,9 +162,18 @@
command="git archive ${revision} | tar -xf - -C ../${dir}"
checkreturn="true" />
- <exec dir="${dir}"
- command="php ../composer.phar install"
- passthru="true" />
+ <!--
+ Make sure composer is available before calling it.
+ Older versions of the tree didn't use it.
+ -->
+ <if>
+ <available file='${dir}/../composer.phar' type='file' />
+ <then>
+ <exec dir="${dir}"
+ command="php ../composer.phar install"
+ passthru="true" />
+ </then>
+ </if>
<delete file="${dir}/config.php" />
<delete dir="${dir}/develop" />