Update composer.phar when it is older than 30 days

This commit is contained in:
Sebastian Bergmann 2014-04-27 09:18:52 +02:00
parent 13e2857ac9
commit 9a62fed674
1 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,16 @@
</target>
<target name="composer" depends="clean" description="Install dependencies with Composer">
<tstamp>
<format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
</tstamp>
<delete>
<fileset dir="${basedir}">
<include name="composer.phar" />
<date datetime="${thirty.days.ago}" when="before"/>
</fileset>
</delete>
<get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
<exec executable="php">