]> git.proxmox.com Git - extjs.git/blame - extjs/packages/core/.sencha/package/build-impl.xml
add extjs 6.0.1 sources
[extjs.git] / extjs / packages / core / .sencha / package / build-impl.xml
CommitLineData
6527f429
DM
1<?xml version="1.0" encoding="utf-8"?>\r
2<!--\r
3********************************** DO NOT EDIT **********************************\r
4\r
5This file will be replaced during upgrades so DO NOT EDIT this file. If you need to\r
6adjust the process, reading and understanding this file is the first step.\r
7\r
8In most cases, the adjustments can be achieved by setting properties or providing one\r
9of the "hooks" in the form of a "-before-" or "-after-" target. Whenever possible, look\r
10for one of these solutions.\r
11\r
12Failing that, you can copy whole targets to your build.xml file and it will overrride\r
13the target provided here. Doing that can create problems for upgrading to newer\r
14versions of Cmd so it is not recommended but it will be easier to manage than editing\r
15this file in most cases.\r
16-->\r
17<project name="x-pkg-build-impl">\r
18 \r
19 <!--\r
20 ===============================================================\r
21 Find Cmd\r
22 uses targets from find-cmd-impl.xml to detect the current \r
23 install of Sencha Cmd\r
24 ===============================================================\r
25 -->\r
26 <import file="${basedir}/.sencha/package/find-cmd-impl.xml"/>\r
27 <target name="init-cmd" \r
28 depends="find-cmd-in-path,\r
29 find-cmd-in-environment,\r
30 find-cmd-in-shell">\r
31 <echo>Using Sencha Cmd from ${cmd.dir} for ${ant.file}</echo>\r
32\r
33 <!--\r
34 load the sencha.jar ant task definitions.\r
35 \r
36 NOTE: the 'loaderref' attribute stores this task def's class loader\r
37 on the project by that name, so it will be sharable across sub-projects.\r
38 This fixes out-of-memory issues, as well as increases performance.\r
39 \r
40 To supoprt this, it is recommended that any customizations that use\r
41 'ant' or 'antcall' tasks set 'inheritrefs=true' on those tasks, in order\r
42 to propagate the senchaloader reference to those subprojects. \r
43 \r
44 The sencha 'x-ant-call' task, which extends 'antcall' and defaults \r
45 'inheritrefs' to true, may be used in place of antcall in \r
46 build process customizations.\r
47 -->\r
48 <taskdef resource="com/sencha/ant/antlib.xml" \r
49 classpath="${cmd.dir}/sencha.jar"\r
50 loaderref="senchaloader"/>\r
51 \r
52 <!-- \r
53 Some operations require sencha.jar in the current java classpath, \r
54 so this will extend the java.lang.Thread#contextClassLoader with the \r
55 specified java classpath entries\r
56 -->\r
57 <x-extend-classpath>\r
58 <jar path="${cmd.dir}/sencha.jar"/>\r
59 </x-extend-classpath>\r
60 </target>\r
61\r
62 <!--\r
63 ===============================================================\r
64 Init\r
65 uses targets from init-impl.xml to load Sencha Cmd config\r
66 system properties and ant task definitions\r
67 ===============================================================\r
68 -->\r
69 <import file="${basedir}/.sencha/package/refresh-impl.xml"/>\r
70 <import file="${basedir}/.sencha/package/init-impl.xml"/>\r
71 <target name="init"\r
72 depends="init-local,\r
73 init-cmd,\r
74 -before-init,\r
75 -init,\r
76 -after-init,\r
77 -before-init-defaults,\r
78 -init-defaults,\r
79 -after-init-defaults,\r
80 -init-compiler"/>\r
81\r
82 <!--\r
83 ===============================================================\r
84 Build\r
85 this is the starting point for the build process. The 'depends'\r
86 attribute on the -build target controls the ordering of the \r
87 different build phases\r
88 ===============================================================\r
89 -->\r
90 <target name="-before-build"/>\r
91 <target name="-build"\r
92 depends="js,\r
93 inherit-resources,\r
94 copy-resources,\r
95 sass,\r
96 slice,\r
97 subpkgs,\r
98 examples,\r
99 pkg"/>\r
100 <target name="-after-build"/>\r
101 <target name="build"\r
102 depends="init,-before-build,-build,-after-build"\r
103 description="Builds the package"/>\r
104\r
105 <!--\r
106 ===============================================================\r
107 Clean\r
108 removes all artifacts from the output build directories\r
109 ===============================================================\r
110 -->\r
111 <target name="-before-clean"/>\r
112 <target name="-after-clean"/>\r
113 <target name="-clean">\r
114 <delete dir="${package.output.base}"/>\r
115 <delete dir="${build.temp.dir}"/>\r
116 </target>\r
117 <target name="clean" \r
118 depends="init"\r
119 description="Removes all build output produced by the 'build' target">\r
120 <x-ant-call>\r
121 <target name="-before-clean"/>\r
122 <target name="-clean"/>\r
123 <target name="clean-subpkgs"/>\r
124 <target name="clean-examples"/>\r
125 <target name="-after-clean"/>\r
126 </x-ant-call>\r
127 </target>\r
128 \r
129 <!--\r
130 ===============================================================\r
131 JS\r
132 uses targets from js-impl.xml to produce the output js files\r
133 containing package js classes\r
134 ===============================================================\r
135 -->\r
136 <import file="${basedir}/.sencha/package/js-impl.xml"/>\r
137 <target name="js" \r
138 depends="init"\r
139 description="Builds the JS files">\r
140 <x-ant-call unless="skip.js">\r
141 <target name="-before-js"/>\r
142 <target name="-js"/>\r
143 <target name="-after-js"/>\r
144 </x-ant-call>\r
145 </target>\r
146\r
147 <!--\r
148 ===============================================================\r
149 Resources\r
150 uses targets from resources-impl.xml the package's resources \r
151 to the output directory\r
152 ===============================================================\r
153 -->\r
154 <import file="${basedir}/.sencha/package/resources-impl.xml"/>\r
155\r
156 <target name="inherit-resources" \r
157 depends="init" \r
158 description="Performs the resource folder inheritance from base theme(s)">\r
159 <x-ant-call unless="skip.inherit">\r
160 <target name="-before-inherit-resources"/>\r
161 <target name="-inherit-resources"/>\r
162 <target name="-after-inherit-resources"/>\r
163 </x-ant-call>\r
164 </target>\r
165 \r
166 <target name="copy-resources" \r
167 depends="init" \r
168 description="Copy theme resources to folder">\r
169 <x-ant-call unless="skip.resources">\r
170 <target name="-before-copy-resources"/>\r
171 <target name="-copy-resources"/>\r
172 <target name="-after-copy-resources"/>\r
173 </x-ant-call>\r
174 </target>\r
175 \r
176 <!--\r
177 ===============================================================\r
178 Sass\r
179 uses targets from sass-impl.xml to produce the output css\r
180 files for the package's styling\r
181 ===============================================================\r
182 -->\r
183 <import file="${basedir}/.sencha/package/sass-impl.xml"/>\r
184 <target name="sass" \r
185 depends="init"\r
186 description="Builds the SASS files using Compass">\r
187 <x-ant-call unless="skip.sass">\r
188 <target name="-before-sass"/>\r
189 <target name="-sass"/>\r
190 <target name="-after-sass"/>\r
191 </x-ant-call>\r
192 </target>\r
193 \r
194 <!--\r
195 ===============================================================\r
196 Slice\r
197 uses targets from slice-impl.xml to extract theme images from\r
198 the package's styling for use with older browsers that don't \r
199 support modern css features\r
200 ===============================================================\r
201 -->\r
202 <import file="${basedir}/.sencha/package/slice-impl.xml"/>\r
203 <target name="slice" \r
204 depends="init" \r
205 description="Slices CSS3 theme to produce non-CSS3 images and sprites">\r
206 <x-ant-call unless="skip.slice">\r
207 <target name="-before-slice"/>\r
208 <target name="-slice"/>\r
209 <target name="-after-slice"/>\r
210 </x-ant-call>\r
211 </target>\r
212\r
213\r
214 <!--\r
215 ===============================================================\r
216 Sub Builds\r
217 uses targets from sub-builds.xml to process other packages\r
218 and example applications contained within this package.\r
219 Only the "subpkgs" and "examples" targets are part of the \r
220 main build sequence.\r
221 ===============================================================\r
222 -->\r
223 <import file="sub-builds.xml"/>\r
224 \r
225 <!--\r
226 sub packages\r
227 -->\r
228 <target name="subpkgs" \r
229 depends="init"\r
230 description="Builds all sub-packages">\r
231 <x-ant-call unless="skip.subpkgs">\r
232 <target name="-before-subpkgs"/>\r
233 <target name="-subpkgs"/>\r
234 <target name="-after-subpkgs"/>\r
235 </x-ant-call>\r
236 </target>\r
237\r
238 <target name="clean-subpkgs" \r
239 depends="init"\r
240 description="Cleans all sub-packages">\r
241 <x-ant-call unless="skip.clean.subpkgs">\r
242 <target name="-before-clean-subpkgs"/>\r
243 <target name="-clean-subpkgs"/>\r
244 <target name="-after-clean-subpkgs"/>\r
245 </x-ant-call>\r
246 </target>\r
247\r
248 <target name="upgrade-subpkgs" \r
249 depends="init"\r
250 description="Upgrades all sub-packages">\r
251 <x-ant-call unless="skip.upgrade.subpkgs">\r
252 <target name="-before-upgrade-subpkgs"/>\r
253 <target name="-upgrade-subpkgs"/>\r
254 <target name="-after-upgrade-subpkgs"/>\r
255 </x-ant-call>\r
256 </target>\r
257 \r
258 <!--\r
259 example applications\r
260 -->\r
261 <target name="examples" \r
262 depends="init"\r
263 description="Builds all examples">\r
264 <x-ant-call unless="skip.examples">\r
265 <target name="-before-examples"/>\r
266 <target name="-examples"/>\r
267 <target name="-after-examples"/>\r
268 </x-ant-call>\r
269 </target>\r
270\r
271 <target name="clean-examples" \r
272 depends="init"\r
273 description="Upgrades all examples">\r
274 <x-ant-call unless="skip.clean.examples">\r
275 <target name="-before-clean-examples"/>\r
276 <target name="-clean-examples"/>\r
277 <target name="-after-clean-examples"/>\r
278 </x-ant-call>\r
279 </target>\r
280\r
281 <target name="upgrade-examples" \r
282 depends="init"\r
283 description="Upgrades all examples">\r
284 <x-ant-call unless="skip.upgrade.examples">\r
285 <target name="-before-upgrade-examples"/>\r
286 <target name="-upgrade-examples"/>\r
287 <target name="-after-upgrade-examples"/>\r
288 </x-ant-call>\r
289 </target>\r
290\r
291 <!--\r
292 Build PKG\r
293 -->\r
294 <target name="-before-pkg"/>\r
295 <target name="-after-pkg"/>\r
296 <target name="-pkg">\r
297 <x-make-pkg dir="${package.dir}"\r
298 files="${build.pkg.manifest}"\r
299 pkg="${pkg.build.dir}/${pkg.file.name}"\r
300 temp="${build.temp.dir}"/>\r
301 </target>\r
302 <target name="pkg" \r
303 depends="init"\r
304 description="Builds the PKG file">\r
305 <x-ant-call unless="skip.pkg">\r
306 <target name="-before-pkg"/>\r
307 <target name="-pkg"/>\r
308 <target name="-after-pkg"/>\r
309 </x-ant-call>\r
310 </target>\r
311\r
312 <!--\r
313 ===============================================================\r
314 Help - properties\r
315 displays all current ant properties\r
316 ===============================================================\r
317 -->\r
318 <target name=".props" depends="init"\r
319 description="Lists all properties defined for the build">\r
320 <echoproperties/>\r
321 </target>\r
322\r
323 <!--\r
324 ===============================================================\r
325 Help - docs\r
326 displays the help message\r
327 ===============================================================\r
328 -->\r
329 <target name=".help" depends="init"\r
330 description="Provides help on the build script">\r
331\r
332 <x-get-project-targets property="help.message"/>\r
333\r
334 <echo><![CDATA[${help.message}\r
335This is the main build script for your package.\r
336\r
337The following properties can be used to disable certain steps in the build\r
338process.\r
339\r
340 * skip.pkg Do not build the PKG file\r
341 * skip.sass Do not build the SASS.\r
342 * skip.js Do not build the JS files.\r
343\r
344For details about how these options affect your build, see\r
345\r
346 ${basedir}/.sencha/package/build-impl.xml\r
347\r
348These options can be stored in a local.properties file in this folder or in the\r
349local.properties file in the workspace.\r
350\r
351Alternatively, these can be supplied on the command line. For example:\r
352\r
353 sencha ant -Dskip.sass=1 build\r
354\r
355To see all currently defined properties, do this:\r
356\r
357 sencha ant .props\r
358 ]]></echo>\r
359 </target>\r
360\r
361</project>\r