]> git.proxmox.com Git - sencha-touch.git/blob - src/examples/list-horizontal/.sencha/app/refresh-impl.xml
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / examples / list-horizontal / .sencha / app / refresh-impl.xml
1 <project name="refresh-impl">
2 <import file="bootstrap-impl.xml"/>
3
4 <target name="-init-refresh" depends="-detect-app-build-properties">
5 <property name="app.bootstrap.base.path"
6 value="${build.bootstrap.metadata.dir}"/>
7 </target>
8
9 <target name="-refresh-app-manifest" if="build.enable.appmanifest" depends="-init-refresh">
10
11 <local name="manifest.root.excludes"/>
12 <condition property="manifest.root.excludes" value="${app.bootstrap.manifest.exclude}">
13 <isset property="app.bootstrap.manifest.exclude"/>
14 </condition>
15 <condition property="manifest.root.excludes" value="loadOrder">
16 <isset property="app.has.js.sdk"/>
17 </condition>
18 <property name="manifest.root.excludes" value=""/>
19
20 <x-compile refid="${compiler.ref.id}">
21 <![CDATA[
22 microload
23 -operation=microloader
24 -microloaderPath=${app.microloader.bootstrap}
25 -bootPath=${build.boot.file}
26 -out=${app.bootstrap.js}
27 and
28 microload
29 -operation=manifest
30 -bootstrap
31 -exclude=${manifest.root.excludes}
32 -tpl={0}
33 -basePath=${app.bootstrap.base.path}
34 -out=${build.json.bootstrap.path}
35 ]]>
36 </x-compile>
37 </target>
38
39 <target name="-refresh-app-bootstrap" unless="build.enable.appmanifest" depends="-init-refresh">
40
41 <!--regenerate class system metadata-->
42 <x-bootstrap file="${app.bootstrap.js}"
43 basedir="${app.bootstrap.base.path}"
44 overrideTpl="${bootstrap.override.tpl}"
45 overrideTplType="${bootstrap.override.tpltype}"
46 includeOverrides="${bootstrap.include.overrides}"
47 includeBoot="${bootstrap.include.boot}"/>
48
49 <!--regenerate json manifest bootstrap data-->
50 <if>
51 <equals arg1="${app.page.mode}" arg2="xcompile"/>
52 <then>
53 <!--
54 append the microloader and manifest to the end
55 of bootstrap.js
56 -->
57 <x-compile refid="${compiler.ref.id}">
58 <![CDATA[
59 microload
60 -operation=microloader
61 -microloaderPath=${app.microloader.bootstrap}
62 -append
63 -out=${app.bootstrap.js}
64 ]]>
65 </x-compile>
66 </then>
67 </if>
68
69 <!--
70 create / overwrite bootstrap.json, which will be used
71 by the default development.js microloader
72 -->
73
74 <echo file="${build.json.bootstrap.path}">
75 /**
76 * This file is generated by Sencha Cmd and should NOT be edited. It is a
77 * combination of content from app.json, and all required package's package.json
78 * files. Customizations should be placed in app.json.
79 */
80 </echo>
81 <x-compile refid="${compiler.ref.id}">
82 <![CDATA[
83 microload
84 -operation=json
85 -bootstrap
86 -append
87 -tpl={0}
88 -basePath=${app.bootstrap.base.path}
89 -out=${build.json.bootstrap.path}
90 ]]>
91 </x-compile>
92 </target>
93
94 <!--
95 Refreshes the application's bootstrap javascript and microloader manifest
96 '-detect-app-build-properties' is defined in js-impl.xml
97 -->
98 <target name="-refresh-app"
99 depends="-detect-app-build-properties,
100 -refresh-app-manifest,
101 -refresh-app-bootstrap"/>
102
103 <!--
104 Refresh app
105 -->
106 <target name="-before-refresh"/>
107 <target name="-refresh" depends="-refresh-app"/>
108 <target name="-after-refresh"/>
109 </project>