]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | <project name="x-refresh-impl">\r |
2 | <import file="bootstrap-impl.xml"/>\r | |
3 | \r | |
4 | <target name="-init-refresh" depends="-detect-app-build-properties">\r | |
5 | <property name="app.bootstrap.base.path"\r | |
6 | value="${build.bootstrap.metadata.dir}"/>\r | |
7 | </target>\r | |
8 | \r | |
9 | <target name="-refresh-app-manifest" if="build.enable.appmanifest" depends="-init-refresh">\r | |
10 | \r | |
11 | <local name="manifest.root.excludes"/>\r | |
12 | <condition property="manifest.root.excludes" value="${app.bootstrap.manifest.exclude}">\r | |
13 | <isset property="app.bootstrap.manifest.exclude"/>\r | |
14 | </condition>\r | |
15 | \r | |
16 | <condition property="manifest.root.excludes" value="loadOrder">\r | |
17 | <and>\r | |
18 | <x-is-true value="${app.has.js.sdk}"/>\r | |
19 | <not>\r | |
20 | <isset property="app.watch.enabled"/>\r | |
21 | </not>\r | |
22 | </and>\r | |
23 | </condition>\r | |
24 | <property name="manifest.root.excludes" value=""/>\r | |
25 | \r | |
26 | <property name="metadata.bootstrap.base.path" value="${build.bootstrap.metadata.dir}"/>\r | |
27 | \r | |
28 | <condition property="refresh.file.filter" value="framework,package-core,package-${toolkit.name}">\r | |
29 | <x-is-true value="${framework.isV6}"/>\r | |
30 | </condition>\r | |
31 | <property name="refresh.file.filter" value="framework,package-sencha-core"/>\r | |
32 | \r | |
33 | <if>\r | |
34 | <x-is-true value="${app.has.js.sdk}"/>\r | |
35 | <then>\r | |
36 | <x-compile refid="${compiler.ref.id}">\r | |
37 | <![CDATA[\r | |
38 | include\r | |
39 | -all\r | |
40 | and\r | |
41 | exclude\r | |
42 | -tag=${refresh.file.filter}\r | |
43 | and\r | |
44 | save\r | |
45 | bootstrap\r | |
46 | ]]>\r | |
47 | </x-compile>\r | |
48 | </then>\r | |
49 | <else>\r | |
50 | <x-compile refid="${compiler.ref.id}">\r | |
51 | <![CDATA[\r | |
52 | include\r | |
53 | -all\r | |
54 | and\r | |
55 | save\r | |
56 | bootstrap\r | |
57 | ]]>\r | |
58 | </x-compile>\r | |
59 | </else>\r | |
60 | </if>\r | |
61 | \r | |
62 | <x-get-relative-path from="${build.bootstrap.page.dir}"\r | |
63 | to="${build.json.bootstrap.path}"\r | |
64 | property="build.json.bootstrap.rel.path"/>\r | |
65 | \r | |
66 | <echo file="${app.bootstrap.js}">var Ext = Ext || {};\r | |
67 | Ext.manifest = Ext.manifest || "${build.json.bootstrap.rel.path}";\r | |
68 | </echo>\r | |
69 | \r | |
70 | <x-compile refid="${compiler.ref.id}">\r | |
71 | <![CDATA[\r | |
72 | microload\r | |
73 | -operation=microloader\r | |
74 | -microloaderPath=${app.microloader.bootstrap}\r | |
75 | -bootPath=${build.boot.file}\r | |
76 | +append\r | |
77 | -out=${app.bootstrap.js}\r | |
78 | and\r | |
79 | microload\r | |
80 | -operation=manifest\r | |
81 | -fashion=${use.fashion}\r | |
82 | -bootstrap\r | |
83 | +ignoreDisabled\r | |
84 | -exclude=${manifest.root.excludes}\r | |
85 | -tpl={0}\r | |
86 | -basePath=${metadata.bootstrap.base.path}\r | |
87 | -out=${build.json.bootstrap.path}\r | |
88 | ]]>\r | |
89 | </x-compile>\r | |
90 | </target>\r | |
91 | \r | |
92 | <target name="-refresh-app-bootstrap" unless="build.enable.appmanifest" depends="-init-refresh">\r | |
93 | \r | |
94 | <!--regenerate class system metadata-->\r | |
95 | <x-bootstrap file="${app.bootstrap.js}"\r | |
96 | basedir="${app.bootstrap.base.path}"\r | |
97 | overrideTpl="${bootstrap.override.tpl}"\r | |
98 | overrideTplType="${bootstrap.override.tpltype}"\r | |
99 | includeOverrides="${bootstrap.include.overrides}"\r | |
100 | includeBoot="${bootstrap.include.boot}"/>\r | |
101 | \r | |
102 | <!--\r | |
103 | create / overwrite bootstrap.json, which will be used\r | |
104 | by the default development.js microloader\r | |
105 | -->\r | |
106 | \r | |
107 | <echo file="${build.json.bootstrap.path}">\r | |
108 | /**\r | |
109 | * This file is generated by Sencha Cmd and should NOT be edited. It is a\r | |
110 | * combination of content from app.json, and all required package's package.json\r | |
111 | * files. Customizations should be placed in app.json.\r | |
112 | */\r | |
113 | </echo>\r | |
114 | <x-compile refid="${compiler.ref.id}">\r | |
115 | <![CDATA[\r | |
116 | microload\r | |
117 | -operation=json\r | |
118 | -bootstrap\r | |
119 | -append\r | |
120 | -tpl={0}\r | |
121 | -basePath=${app.bootstrap.base.path}\r | |
122 | -out=${build.json.bootstrap.path}\r | |
123 | ]]>\r | |
124 | </x-compile>\r | |
125 | </target>\r | |
126 | \r | |
127 | <!--\r | |
128 | Refreshes the application's bootstrap javascript and microloader manifest\r | |
129 | '-detect-app-build-properties' is defined in js-impl.xml\r | |
130 | -->\r | |
131 | <target name="-refresh-app" \r | |
132 | depends="-detect-app-build-properties,\r | |
133 | -refresh-app-manifest,\r | |
134 | -refresh-app-bootstrap"/>\r | |
135 | \r | |
136 | <!--\r | |
137 | Refresh app\r | |
138 | -->\r | |
139 | <target name="-before-refresh"/>\r | |
140 | <target name="-refresh" depends="-refresh-app"/>\r | |
141 | <target name="-after-refresh"/>\r | |
142 | </project> |