]> git.proxmox.com Git - extjs.git/blame - extjs/examples/modern/geocongress/.sencha/app/page-impl.xml
add extjs 6.0.1 sources
[extjs.git] / extjs / examples / modern / geocongress / .sencha / app / page-impl.xml
CommitLineData
6527f429
DM
1<project name="x-page-impl.xml">\r
2\r
3 <macrodef name="x-build-microload-markup">\r
4 <sequential>\r
5 <x-sencha-command dir="${app.dir}" inheritall="true">\r
6 <![CDATA[\r
7 fs\r
8 minify\r
9 ${build.embedded.microloader.compressor}\r
10 -from=${build.microloader.path}\r
11 -to=${build.microloader.path}\r
12 ]]>\r
13 </x-sencha-command>\r
14 <if>\r
15 <x-is-true value="${build.enable.embedded.microloader}"/>\r
16 <then>\r
17 <x-run-if-true value="${app.output.page.enable}">\r
18 <x-compile refid="${compiler.ref.id}">\r
19 <![CDATA[\r
20 markup\r
21 -contentFile=${build.microloader.path}\r
22 -tpl=${build.embedded.microloader.tpl}\r
23 -out=${build.out.page.path}\r
24 ]]>\r
25 </x-compile>\r
26 <!--once the generated microloader file is embedded, delete it-->\r
27 <delete file="${build.microloader.path}"/>\r
28 </x-run-if-true>\r
29 </then>\r
30 <else>\r
31 <x-run-if-true value="${app.output.page.enable}">\r
32 <x-compile refid="${compiler.ref.id}">\r
33 <![CDATA[\r
34 markup\r
35 -markup=${build.external.microloader.markup}\r
36 -out=${build.out.page.path}\r
37 ]]>\r
38 </x-compile>\r
39 </x-run-if-true>\r
40 </else>\r
41 </if>\r
42 </sequential>\r
43 </macrodef>\r
44\r
45 <target name="-build-output-manifest-page">\r
46 <local name="metadata.base.path"/>\r
47 <property name="metadata.base.path" value="${build.out.metadata.dir}"/>\r
48 <x-run-if-true value="${app.output.manifest.enable}">\r
49 <if>\r
50 <x-is-true value="${build.enable.embedded.manifest}"/>\r
51 <then>\r
52 <x-compile refid="${compiler.ref.id}">\r
53 <![CDATA[\r
54 # generate microloader file\r
55 # generate json file\r
56 microload\r
57 -operation=manifest\r
58 -fashion=${use.fashion}\r
59 -tpl=${build.microloader.json.tpl.embedded}\r
60 -out=${build.microloader.path}\r
61 -resourcePath=${build.out.base.path}\r
62 -basePath=${metadata.base.path}\r
63 and\r
64 microload\r
65 -append\r
66 -operation=microloader\r
67 -microloaderPath=${app.microloader.path}\r
68 -bootPath=${build.boot.file}\r
69 -tpl=${build.microloader.code.tpl}\r
70 -out=${build.microloader.path}\r
71 ]]>\r
72 </x-compile>\r
73 </then>\r
74 <else>\r
75 <x-compile refid="${compiler.ref.id}">\r
76 <![CDATA[\r
77 # generate json file\r
78 microload\r
79 -operation=manifest\r
80 -fashion=${use.fashion}\r
81 -tpl=${build.microloader.json.tpl.standalone}\r
82 -out=${build.out.json.path}\r
83 -resourcePath=${build.out.base.path}\r
84 -basePath=${metadata.base.path}\r
85 and\r
86 microload\r
87 -operation=manifest\r
88 -fashion=${use.fashion}\r
89 -tpl=${build.microloader.json.tpl.external}\r
90 -out=${build.microloader.path}\r
91 -resourcePath=${build.out.base.path}\r
92 -basePath=${metadata.base.path}\r
93 and\r
94 # generate microloader file\r
95 microload\r
96 -append\r
97 -operation=microloader\r
98 -microloaderPath=${app.microloader.path}\r
99 -bootPath=${build.boot.file}\r
100 -tpl=${build.microloader.code.tpl}\r
101 -out=${build.microloader.path}\r
102 ]]>\r
103 </x-compile>\r
104 </else>\r
105 </if>\r
106 </x-run-if-true>\r
107 <x-build-microload-markup/>\r
108 </target>\r
109\r
110 <target name="-build-output-microload-page">\r
111 <if>\r
112 <x-is-true value="${build.enable.embedded.manifest}"/>\r
113 <then>\r
114 <x-compile refid="${compiler.ref.id}">\r
115 <![CDATA[\r
116 # generate microloader file\r
117 microload\r
118 -operation=microloader\r
119 -microloaderPath=${app.microloader.path}\r
120 -tpl=${build.microloader.code.tpl}\r
121 -out=${build.microloader.path}\r
122 and\r
123 # generate json file\r
124 microload\r
125 -operation=json\r
126 -append\r
127 -tpl=${build.microloader.json.tpl.embedded}\r
128 -out=${build.microloader.path}\r
129 ]]>\r
130 </x-compile>\r
131 </then>\r
132 <else>\r
133 <x-compile refid="${compiler.ref.id}">\r
134 <![CDATA[\r
135 # generate json file\r
136 microload\r
137 -operation=json\r
138 -tpl=${build.microloader.json.tpl.standalone}\r
139 -out=${build.out.json.path}\r
140 and\r
141 # generate microloader file\r
142 microload\r
143 -operation=microloader\r
144 -microloaderPath=${app.microloader.path}\r
145 -tpl=${build.microloader.code.tpl}\r
146 -out=${build.microloader.path}\r
147 and\r
148 microload\r
149 -operation=json\r
150 -append\r
151 -tpl=${build.microloader.json.tpl.external}\r
152 -out=${build.microloader.path}\r
153 ]]>\r
154 </x-compile>\r
155 </else>\r
156 </if>\r
157 <x-build-microload-markup/>\r
158 </target>\r
159\r
160 <!-- generates a separate json manifest for use with native packager -->\r
161 <target name="-build-standalone-json-manifest">\r
162 <x-run-if-true value="${enable.standalone.manifest}">\r
163 <x-compile refid="${compiler.ref.id}">\r
164 <![CDATA[\r
165 # generate json file\r
166 microload\r
167 -operation=json\r
168 -tpl=${build.microloader.json.tpl.standalone}\r
169 -out=${build.out.json.path}\r
170 ]]>\r
171 </x-compile>\r
172 </x-run-if-true>\r
173 </target>\r
174\r
175 <target name="-build-output-markup-page">\r
176 <condition property="internal.app.css.rel" value="${app.out.css.rel}">\r
177 <x-is-true value="${enable.ext42.themes}"/>\r
178 </condition>\r
179 <property name="internal.app.css.rel" value=""/>\r
180\r
181 <if>\r
182 <isset property="framework.isV5"/>\r
183 <then>\r
184 <x-compile refid="${compiler.ref.id}">\r
185 <![CDATA[\r
186 markup\r
187 -out=${build.out.page.path}\r
188 -basePath=${build.out.metadata.dir}\r
189 -resourcePath=${build.out.base.path}\r
190 and\r
191 # generate microloader file\r
192 # generate json file\r
193 microload\r
194 -operation=manifest\r
195 -fashion=${use.fashion}\r
196 -tpl=${build.microloader.json.tpl.embedded}\r
197 -out=${build.microloader.path}\r
198 -resourcePath=${build.out.base.path}\r
199 -basePath=${build.out.metadata.dir}\r
200 ]]>\r
201 </x-compile>\r
202 <x-compress-js srcFile="${build.microloader.path}" outFile="${build.microloader.path}"/>\r
203 <concat destfile="${build.out.js.path}.tmp">\r
204 <fileset file="${build.microloader.path}"/>\r
205 <fileset file="${build.out.js.path}"/>\r
206 </concat>\r
207 <delete file="${build.microloader.path}"/>\r
208 <delete file="${build.out.js.path}"/>\r
209 <move file="${build.out.js.path}.tmp" tofile="${build.out.js.path}"/>\r
210 </then>\r
211 <else>\r
212 <x-compile refid="${compiler.ref.id}">\r
213 <![CDATA[\r
214 markup\r
215 -out=${build.out.page.path}\r
216 -resourcePath=${build.out.base.path}\r
217 -basePath=${build.out.metadata.dir}\r
218 ]]>\r
219 </x-compile>\r
220 </else>\r
221 </if>\r
222 </target>\r
223\r
224 <!-- '-detect-app-build-properties' is defined in js-impl.xml -->\r
225 <target name="-build-output-page"\r
226 depends="-detect-app-build-properties,-build-standalone-json-manifest">\r
227 <if>\r
228 <x-is-true value="${build.output.markuponly}"/>\r
229 <then>\r
230 <x-ant-call target="-build-output-markup-page"/>\r
231 </then>\r
232 <else>\r
233 <if>\r
234 <x-is-true value="${build.enable.appmanifest}"/>\r
235 <then>\r
236 <x-ant-call target="-build-output-manifest-page"/>\r
237 </then>\r
238 <else>\r
239 <x-ant-call target="-build-output-microload-page"/>\r
240 </else>\r
241 </if>\r
242 </else>\r
243 </if>\r
244 </target>\r
245\r
246 <target name="-copy-app-resources" depends="-init-compiler">\r
247 <x-compile refid="${compiler.ref.id}">\r
248 <![CDATA[\r
249 app-resources\r
250 -compress=${enable.resource.compression}\r
251 -out=${build.out.base.path}\r
252 ]]>\r
253 </x-compile>\r
254 </target>\r
255\r
256 <target name="-apply-version-stamps" depends="-init-compiler">\r
257 <x-run-if-true value="${app.cache.enable}">\r
258 <x-compile refid="${compiler.ref.id}">\r
259 <![CDATA[\r
260 versions\r
261 -resourcePath=${build.out.base.path}\r
262 ]]>\r
263 </x-compile>\r
264 </x-run-if-true>\r
265 </target>\r
266\r
267 <target name="-generate-deltas" depends="-apply-version-stamps">\r
268 <if>\r
269 <and>\r
270 <x-is-false value="${skip.deltas}"/>\r
271 <x-is-false value="${build.output.markuponly}"/>\r
272 </and>\r
273 <then>\r
274 <x-compile refid="${compiler.ref.id}">\r
275 <![CDATA[\r
276 deltas\r
277 -archivePath=${build.out.archive.path}\r
278 -deltaPath=${build.out.deltas.path}\r
279 -resourcePath=${build.out.base.path}\r
280 ]]>\r
281 </x-compile>\r
282 </then>\r
283 </if>\r
284 </target>\r
285\r
286 <target name="-generate-cache-manifest" depends="-init-compiler">\r
287 <if>\r
288 <and>\r
289 <x-is-false value="${skip.appCache}"/>\r
290 <x-is-false value="${build.output.markuponly}"/>\r
291 </and>\r
292 <then>\r
293 <x-compile refid="${compiler.ref.id}">\r
294 <![CDATA[\r
295 cache-manifest\r
296 -cacheManifestPath=${build.manifest.path}\r
297 ]]>\r
298 </x-compile>\r
299 <replace file="${build.out.page.path}"\r
300 token="&lt;html manifest=&quot;&quot;"\r
301 value="&lt;html manifest=&quot;${build.out.appCache.name}&quot;"/>\r
302 </then>\r
303 </if>\r
304 <!--remove manifest placeholder if present-->\r
305 <replace file="${build.out.page.path}"\r
306 token="&lt;html manifest=&quot;&quot;"\r
307 value="&lt;html"/>\r
308 </target>\r
309\r
310 <target name="-before-page"/>\r
311 <target name="-page"\r
312 depends="-copy-app-resources,\r
313 -generate-deltas,\r
314 -build-output-page,\r
315 -generate-cache-manifest"/>\r
316 <target name="-after-page"/>\r
317</project>