-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
29 lines (24 loc) · 824 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?>
<project name="JetFuel" default="build" basedir=".">
<property name="php_bin_path" value="/usr/local/bin"/>
<target name="build">
<phingcall target="prepare"/>
<phingcall target="composer"/>
<phingcall target="transfer"/>
</target>
<target name="prepare">
<delete dir="dist"/>
<mkdir dir="dist"/>
</target>
<target name="composer">
<exec passthru="true" checkreturn="false" command="php ${php_bin_path}/composer.phar update --no-dev --optimize-autoloader --prefer-dist --no-interaction"/>
</target>
<target name="transfer">
<copy todir="dist">
<fileset dir="vendor">
<include name="autoload.php"></include>
<include name="composer/**.php"></include>
</fileset>
</copy>
</target>
</project>