This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbuild.xml
50 lines (43 loc) · 1.48 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
<project name="ARSnova" default="run">
<property name="main.dir" value="src/main/webapp" />
<property name="sencha.build.dir" value="${main.dir}/build" />
<property name="sencha.build.testing.dir" value="${sencha.build.dir}/testing/ARSnova" />
<property name="sencha.build.production.dir" value="${sencha.build.dir}/production/ARSnova" />
<property name="environment" value="production" />
<target name="sencha:refresh">
<exec executable="sencha" dir="${main.dir}" failonerror="true">
<arg value="app"/>
<arg value="refresh"/>
</exec>
</target>
<target name="sencha:build:testing">
<exec executable="sencha" dir="${main.dir}" failonerror="true">
<arg value="app"/>
<arg value="build"/>
<arg value="testing"/>
</exec>
</target>
<target name="sencha:build:production">
<exec executable="sencha" dir="${main.dir}" failonerror="true">
<arg value="app"/>
<arg value="build"/>
<arg value="production"/>
</exec>
</target>
<target name="sencha:watch:testing">
<antcall target="sencha:app:watch">
<param name="environment" value="testing" />
</antcall>
</target>
<target name="sencha:watch:production">
<antcall target="sencha:app:watch">
<param name="environment" value="production" />
</antcall>
</target>
<target name="sencha:app:watch">
<exec executable="sencha" dir="${main.dir}" failonerror="true">
<arg line="app watch -e ${environment}"/>
</exec>
</target>
<target name="run" depends="sencha:refresh, sencha:build:production"/>
</project>