diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-12-23 19:57:30 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-12-23 19:57:30 +0100 |
commit | 68710bb55a4ca39f31136c29369b49b8ee082c99 (patch) | |
tree | 6e62a115d62a135554fc98db585e0c33a92c7b6b /build | |
parent | 86f0c0a6d5d65141fbce138fc7702795b39693cd (diff) | |
download | forums-68710bb55a4ca39f31136c29369b49b8ee082c99.tar forums-68710bb55a4ca39f31136c29369b49b8ee082c99.tar.gz forums-68710bb55a4ca39f31136c29369b49b8ee082c99.tar.bz2 forums-68710bb55a4ca39f31136c29369b49b8ee082c99.tar.xz forums-68710bb55a4ca39f31136c29369b49b8ee082c99.zip |
[ticket/11291] phing: Make sure composer is available before calling it.
Older versions of the tree didn't use it.
PHPBB3-11291
Diffstat (limited to 'build')
-rw-r--r-- | build/build.xml | 15 |
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" /> |