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