forked from darrenjacoby/intervention
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
28 lines (24 loc) · 769 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Intervention" default="build" basedir=".">
<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="composer 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="**.php"></include>
<include name="**/*.php"></include>
</fileset>
</copy>
</target>
</project>