-
Notifications
You must be signed in to change notification settings - Fork 33
/
build.xml
61 lines (48 loc) · 2.07 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<project name="Build File" default="help">
<property name="path" value="${project.basedir}"/>
<!-- ============================================ -->
<!-- Target: list available targets -->
<!-- ============================================ -->
<target name="help" hidden="true">
<exec command="phing -l -q" passthru="true"/>
</target>
<!-- ============================================ -->
<!-- Target: build xPDO schema -->
<!-- ============================================ -->
<target name="schema" description="Build xPDO schema">
<property name="cmd.build-schema" value="php /vagrant/_build/build.schema.php" />
<echo msg="Building xPDO schema..." level="warning" />
<exec command="vagrant ssh -c '${cmd.build-schema}'"
returnProperty="success"
passthru="true"/>
<if>
<equals arg1="${success}" arg2="0" />
<then>
<echo msg="Schema built successfully" level="warning" />
</then>
<else>
<echo msg="Schema build failed" level="error" />
</else>
</if>
</target>
<!-- ============================================ -->
<!-- Target: build transport package -->
<!-- ============================================ -->
<target name="build" description="Build transport package">
<property name="cmd.build-package" value="php /vagrant/_build/build.transport.php" />
<echo msg="Building transport package..." level="warning" />
<exec command="vagrant ssh -c '${cmd.build-package}'"
passthru="true"
returnProperty="success"/>
<if>
<equals arg1="${success}" arg2="0" />
<then>
<echo msg="Schema built successfully" level="warning" />
</then>
<else>
<echo msg="Schema build failed" level="error" />
</else>
</if>
</target>
</project>