-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
47 lines (38 loc) · 1.65 KB
/
build.xml
File metadata and controls
47 lines (38 loc) · 1.65 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<project name="ruian2sql" default="prepare">
<property file="./build.properties"/>
<!-- ============================================ -->
<!-- Target: prepare -->
<!-- ============================================ -->
<target name="prepare" depends="unpack">
<exec executable="composer" passthru="true">
<arg value="update"/>
</exec>
<exec executable="./vendor/bin/phinx" passthru="true">
<arg value="migrate"/>
</exec>
<exec executable="./vendor/bin/phinx" passthru="true">
<arg value="seed:run"/>
<arg value="-s"/>
<arg value="Places"/>
</exec>
</target>
<target name="download">
<echo msg="Making directory ./build" />
<mkdir dir="./build" />
<exec executable="wget" passthru="true">
<arg value="-c"/>
<arg value="${url.places.source}${filename.places.archive}"/>
<arg value="-O"/>
<arg value="./build/${filename.places.archive}"/>
</exec>
</target>
<target name="unpack" depends="download">
<unzip file="build/${filename.places.archive}" todir="build">
</unzip>
</target>
<target name="clean">
<delete dir="build" includeemptydirs="true" verbose="true" failonerror="true" />
<delete dir="vendor" includeemptydirs="true" verbose="true" failonerror="true" />
</target>
</project>