source: branches/fscctrl_safety_limits/dim/WebDID/ext-4.1.1a/build.xml@ 19365

Last change on this file since 19365 was 14939, checked in by tbretz, 12 years ago
Added WebDID from v20r5
File size: 6.2 KB
Line 
1<project name="extjs" default="build" basedir=".">
2
3 <target name="init-antcontrib">
4 <taskdef resource="net/sf/antcontrib/antlib.xml">
5 <classpath>
6 <pathelement location="${cmd.dir}/lib/ant-contrib-1.0b3.jar"/>
7 <pathelement
8 location="${cmd..dir}/lib/commons-httpclient-3.0.1.jar"/>
9 <pathelement
10 location="${cmd.dir}/lib/commons-logging-1.0.4.jar"/>
11 <pathelement location="${cmd.dir}/lib/commons-codec-1.3.jar"/>
12 </classpath>
13 </taskdef>
14 </target>
15
16
17 <target name="init-sencha-cmd" depends="init-antcontrib">
18 <taskdef resource="com/sencha/ant/antlib.xml" classpath="${cmd.dir}/sencha.jar"/>
19 </target>
20
21 <target name="build" depends="init-sencha-cmd">
22 <property name="build.dir" location="${basedir}"/>
23
24 <!--
25 Produce base concatenation for standard distribution files
26 -->
27 <x-sencha-command>
28 compile
29 --ignore=diag
30 --options=debug:true
31 concatenate
32 -out=${build.dir}/ext-all-dev.js
33 and
34 concatenate
35 -sandbox=Ext4:x4-
36 -out=${build.dir}/builds/ext-all-sandbox-dev.js
37 and
38 union
39 -tag=core
40 and
41 concatenate
42 -out=${build.dir}/ext-dev.js
43 and
44 concatenate
45 -out=${build.dir}/builds/ext-core-dev.js
46 and
47 union
48 -tag=foundation
49 and
50 concatenate
51 -out=${build.dir}/builds/ext-foundation-dev.js
52 and
53 include
54 -all
55 and
56 --options=debug:false
57 concatenate
58 -out=${build.dir}/ext-all-debug-w-comments.js
59 and
60 concatenate
61 -sandbox=Ext4:x4-
62 -out=${build.dir}/builds/ext-all-sandbox-debug-w-comments.js
63 and
64 union
65 -tag=core
66 and
67 concatenate
68 -out=${build.dir}/ext-debug-w-comments.js
69 and
70 concatenate
71 -out=${build.dir}/builds/ext-core-debug-w-comments.js
72 and
73 union
74 -tag=foundation
75 and
76 concatenate
77 -out=${build.dir}/builds/ext-foundation-debug-w-comments.js
78 and
79 union
80 -not
81 -tag=${build.dir}/core
82 and
83 metadata
84 +append
85 +alternates
86 -base-path=${build.dir}
87 -output-file=${build.dir}/ext-debug-w-comments.js
88 and
89 metadata
90 +append
91 +alternates
92 -base-path=${build.dir}
93 -output-file=${build.dir}/ext-dev.js
94 and
95 metadata
96 +append
97 +alias
98 --base-path=${build.dir}
99 --output-file=${build.dir}/ext-debug-w-comments.js
100 and
101 metadata
102 +append
103 +alias
104 --base-path=${build.dir}
105 --output-file=${build.dir}/ext-dev.js
106 </x-sencha-command>
107
108 <loadfile property="header.text" srcfile="${build.dir}/license.txt"/>
109 <property name="header.comment" value="/*&#10;${header.text}&#10;*/&#10;"/>
110
111 <!--
112 Strip comments from uncompressed builds
113 -->
114
115 <x-strip-js srcfile="${build.dir}/ext-all-debug-w-comments.js"
116 outfile="${build.dir}/ext-all-debug.js"/>
117
118 <x-strip-js srcfile="${build.dir}/ext-debug-w-comments.js"
119 outfile="${build.dir}/ext-debug.js"/>
120
121 <x-strip-js srcfile="${build.dir}/builds/ext-core-debug-w-comments.js"
122 outfile="${build.dir}/builds/ext-core-debug.js"/>
123
124 <x-strip-js srcfile="${build.dir}/builds/ext-foundation-debug-w-comments.js"
125 outfile="${build.dir}/builds/ext-foundation-debug.js"/>
126
127 <x-strip-js srcfile="${build.dir}/builds/ext-all-sandbox-debug-w-comments.js"
128 outfile="${build.dir}/builds/ext-all-sandbox-debug.js"/>
129 <!--
130 Apply yui compressor
131 -->
132 <x-compress-js
133 srcfile="${build.dir}/ext-all-debug.js"
134 outfile="${build.dir}/ext-all.js"/>
135
136 <x-compress-js
137 srcfile="${build.dir}/ext-debug.js"
138 outfile="${build.dir}/ext.js"/>
139
140 <x-compress-js
141 srcfile="${build.dir}/builds/ext-core-debug.js"
142 outfile="${build.dir}/builds/ext-core.js"/>
143
144 <x-compress-js
145 srcfile="${build.dir}/builds/ext-foundation-debug.js"
146 outfile="${build.dir}/builds/ext-foundation.js"/>
147
148 <x-compress-js
149 srcfile="${build.dir}/builds/ext-all-sandbox-debug.js"
150 outfile="${build.dir}/builds/ext-all-sandbox.js"/>
151
152 <!--
153 Add license headers
154 -->
155
156 <for param="file">
157 <path>
158 <fileset dir="${build.dir}" includes="*.js"/>
159 <fileset dir="${build.dir}/builds" includes="*.js"/>
160 </path>
161 <sequential>
162 <move file="@{file}" tofile="@{file}.tmp"/>
163 <concat destfile="@{file}">
164 <header>${header.comment}</header>
165 <fileset file="@{file}.tmp"/>
166 </concat>
167 <delete file="@{file}.tmp"/>
168 </sequential>
169 </for>
170 </target>
171
172</project>
Note: See TracBrowser for help on using the repository browser.