Skip to content

Commit

Permalink
Take care of build in function (phingofficial#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored and mrook committed May 29, 2017
1 parent 18bc799 commit f8ffb60
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

<dirname property="buildfile.dir" file="${phing.file}"/>

<php function="realpath" returnProperty="phingpkg.home">
<param value="${buildfile.dir}/.."/>
</php>
<resolvepath propertyName="phingpkg.home" path="${buildfile.dir}/.."/>

<property name="build.full.dir" value="${buildfile.dir}/full"/>

Expand Down Expand Up @@ -158,7 +156,12 @@
-->
<target name="composer"
depends="setproperties">
<exec dir="${build.full.dir}" passthru="true" command="composer install -o --no-dev --prefer-dist"/>
<composer command="install" composer="composer" php="">
<arg value="--working-dir=${build.full.dir}"/>
<arg value="-o"/>
<arg value="--no-dev"/>
<arg value="--prefer-dist"/>
</composer>
</target>

<!--
Expand All @@ -170,7 +173,9 @@
if="version"
depends="setproperties">

<php expression="date('Ymd')" returnProperty="builddate" />
<tstamp>
<format property="builddate" pattern="%Y%m%d" />
</tstamp>
<pharpackage
compression="none"
destfile="${build.full.dir}.phar"
Expand Down

0 comments on commit f8ffb60

Please sign in to comment.