-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
95 lines (69 loc) · 3.12 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!-- Extzf | build process -->
<project name="Extzf-Sample" default="rebuild">
<!-- Define variables -->
<property name="deployDir" value="release" />
<property name="buildDir" value="build" />
<property name="extjsDir" value="thirdparty/extjs-4.0.2" />
<!-- Bootstrapping build process -->
<target name="bootstrap">
<delete dir="release" />
<mkdir dir="release" />
<mkdir dir="release/log" />
<mkdir dir="release/cache" />
<mkdir dir="release/data" />
<mkdir dir="release/thirdparty" />
</target>
<!-- JSBuilder2 building -->
<target name="building">
<echo>JavaScript building</echo>
<java jar="thirdparty/jsbuilder2/JSBuilder2.jar"
fork="true"
failonerror="true" >
<jvmarg value="-Dfile.encoding=UTF-8" />
<arg value="-p" />
<arg path="${buildDir}/build.jsb2" />
<arg value="-d" />
<arg path="${buildDir}/" />
<arg value="-v" />
</java>
</target>
<!-- Copy resources -->
<target name="copyresources">
<echo>Copying resources</echo>
<!-- Copy test framework files -->
<copydir dest="${deployDir}/application" src="application" />
<copydir dest="${deployDir}/library" src="library" />
<copydir dest="${deployDir}/public" src="public" />
<copydir dest="${deployDir}/thirdparty/ExtDirect" src="thirdparty/ExtDirect" />
<copydir dest="${deployDir}/public/resources" src="thirdparty/ext-4.0.2/resources" />
</target>
<!-- Copy resources lightweight (without lib, thirdparty) -->
<target name="copyresources_lightweight">
<echo>Copying resources lightweight</echo>
<!-- Copy test framework files -->
<copydir dest="${deployDir}/application" src="application" />
<copydir dest="${deployDir}/public" src="public" />
<copydir dest="${deployDir}/library/Extzf" src="library/Extzf" />
<copydir dest="${deployDir}/public/resources" src="thirdparty/ext-4.0.2/resources" />
</target>
<!-- Generates the javascript language files for each language, packed as one file (ext, ia) -->
<target name="lang">
<exec executable="php">
<arg line="bin/generateLanguageFiles.php"/>
</exec>
</target>
<!-- Generates the direct provider file -->
<target name="direct">
<exec executable="php">
<arg line="bin/generateDirectProvider.php"/>
</exec>
</target>
<!-- Fast building process (no library copy, only JS building) -->
<target name="php" depends="copyresources_lightweight" />
<!-- Fast building process (no library copy, only JS building) -->
<target name="js" depends="copyresources_lightweight,building" />
<!-- Builds php and js -->
<target name="rebuild" depends="php,js" />
<!-- Production building process -->
<target name="init" depends="bootstrap,copyresources,building,direct,lang"></target>
</project>