1 <project name=
"page-impl.xml">
3 <macrodef name=
"x-build-microload-markup">
6 <x-is-true value=
"${build.enable.embedded.microloader}"/>
8 <x-sencha-command dir=
"${app.dir}" inheritall=
"true">
12 ${build.embedded.microloader.compressor}
13 -from=${build.microloader.path}
14 -to=${build.microloader.path}
17 <x-run-if-true value=
"${app.output.page.enable}">
18 <x-compile refid=
"${compiler.ref.id}">
21 -contentFile=${build.microloader.path}
22 -tpl=${build.embedded.microloader.tpl}
23 -out=${build.out.page.path}
26 <!--once the generated microloader file is embedded, delete it-->
27 <delete file=
"${build.microloader.path}"/>
31 <x-run-if-true value=
"${app.output.page.enable}">
32 <x-compile refid=
"${compiler.ref.id}">
35 -markup=${build.external.microloader.markup}
36 -out=${build.out.page.path}
45 <target name=
"-build-output-manifest-page">
46 <local name=
"metadata.base.path"/>
47 <property name=
"metadata.base.path" value=
"${build.out.metadata.dir}"/>
48 <x-run-if-true value=
"${app.output.manifest.enable}">
50 <x-is-true value=
"${build.enable.embedded.manifest}"/>
52 <x-compile refid=
"${compiler.ref.id}">
54 # generate microloader file
58 -tpl=${build.microloader.json.tpl.embedded}
59 -out=${build.microloader.path}
60 -resourcePath=${build.out.base.path}
61 -basePath=${metadata.base.path}
65 -operation=microloader
66 -microloaderPath=${app.microloader.path}
67 -bootPath=${build.boot.file}
68 -tpl=${build.microloader.code.tpl}
69 -out=${build.microloader.path}
74 <x-compile refid=
"${compiler.ref.id}">
79 -tpl=${build.microloader.json.tpl.standalone}
80 -out=${build.out.json.path}
81 -resourcePath=${build.out.base.path}
82 -basePath=${metadata.base.path}
86 -tpl=${build.microloader.json.tpl.external}
87 -out=${build.microloader.path}
88 -resourcePath=${build.out.base.path}
89 -basePath=${metadata.base.path}
91 # generate microloader file
94 -operation=microloader
95 -microloaderPath=${app.microloader.path}
96 -bootPath=${build.boot.file}
97 -tpl=${build.microloader.code.tpl}
98 -out=${build.microloader.path}
104 <x-build-microload-markup/>
107 <target name=
"-build-output-microload-page">
109 <x-is-true value=
"${build.enable.embedded.manifest}"/>
111 <x-compile refid=
"${compiler.ref.id}">
113 # generate microloader file
115 -operation=microloader
116 -microloaderPath=${app.microloader.path}
117 -tpl=${build.microloader.code.tpl}
118 -out=${build.microloader.path}
124 -tpl=${build.microloader.json.tpl.embedded}
125 -out=${build.microloader.path}
130 <x-compile refid=
"${compiler.ref.id}">
135 -tpl=${build.microloader.json.tpl.standalone}
136 -out=${build.out.json.path}
138 # generate microloader file
140 -operation=microloader
141 -microloaderPath=${app.microloader.path}
142 -tpl=${build.microloader.code.tpl}
143 -out=${build.microloader.path}
148 -tpl=${build.microloader.json.tpl.external}
149 -out=${build.microloader.path}
154 <x-build-microload-markup/>
157 <!-- generates a separate json manifest for use with native packager -->
158 <target name=
"-build-standalone-json-manifest">
159 <x-run-if-true value=
"${enable.standalone.manifest}">
160 <x-compile refid=
"${compiler.ref.id}">
165 -tpl=${build.microloader.json.tpl.standalone}
166 -out=${build.out.json.path}
172 <target name=
"-build-output-markup-page">
173 <condition property=
"internal.app.css.rel" value=
"${app.out.css.rel}">
174 <x-is-true value=
"${enable.ext42.themes}"/>
176 <property name=
"internal.app.css.rel" value=
""/>
178 <x-compile refid=
"${compiler.ref.id}">
181 -out=${build.out.page.path}
186 <!-- '-detect-app-build-properties' is defined in js-impl.xml -->
187 <target name=
"-build-output-page"
188 depends=
"-detect-app-build-properties,-build-standalone-json-manifest">
190 <x-is-true value=
"${build.output.markuponly}"/>
192 <x-ant-call target=
"-build-output-markup-page"/>
196 <x-is-true value=
"${build.enable.appmanifest}"/>
198 <x-ant-call target=
"-build-output-manifest-page"/>
201 <x-ant-call target=
"-build-output-microload-page"/>
208 <target name=
"-copy-app-resources" depends=
"-init-compiler">
209 <x-compile refid=
"${compiler.ref.id}">
212 -compress=${enable.resource.compression}
213 -out=${build.out.base.path}
218 <target name=
"-generate-deltas" depends=
"-init-compiler">
219 <x-run-if-true value=
"${app.output.deltas.enable}">
222 <x-is-true value=
"${enable.deltas}"/>
223 <x-is-false value=
"${build.output.markuponly}"/>
226 <x-compile refid=
"${compiler.ref.id}">
229 -archivePath=${build.out.archive.path}
230 -deltaPath=${build.out.delta.path}
231 -resourcePath=${build.out.base.path}
239 <target name=
"-generate-cache-manifest" depends=
"-init-compiler">
240 <x-run-if-true value=
"${app.output.cache.enable}">
243 <x-is-true value=
"${enable.cache.manifest}"/>
244 <x-is-false value=
"${build.output.markuponly}"/>
247 <x-compile refid=
"${compiler.ref.id}">
250 -cacheManifestPath=${build.manifest.path}
253 <replace file=
"${build.out.page.path}"
254 token=
"<html manifest="""
255 value=
"<html manifest="${build.manifest.name}""/>
259 <!--remove manifest placeholder if present-->
260 <replace file=
"${build.out.page.path}"
261 token=
"<html manifest="""
265 <target name=
"-before-page"/>
267 depends=
"-copy-app-resources,
270 -generate-cache-manifest"/>
271 <target name=
"-after-page"/>