[ticket/11291] phing: Make sure composer is available before calling it.

Older versions of the tree didn't use it.

PHPBB3-11291
This commit is contained in:
Andreas Fischer 2012-12-23 19:57:30 +01:00
parent 86f0c0a6d5
commit 68710bb55a

View file

@ -162,9 +162,18 @@
command="git archive ${revision} | tar -xf - -C ../${dir}"
checkreturn="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" />