forked from soberwp/controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
32 lines (27 loc) · 1001 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
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<project name="Controller" 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>
<include name="hassankhan/**/**.php"></include>
<include name="symfony/yaml/**.php"></include>
<include name="brain/**/**.php"></include>
</fileset>
</copy>
</target>
</project>