]> git.proxmox.com Git - sencha-touch.git/blame - src/examples/carousel/.sencha/app/resolve-impl.xml
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / examples / carousel / .sencha / app / resolve-impl.xml
CommitLineData
c4685c84
TL
1<project name="resolve-impl">
2
3 <target name="-before-web-start"/>
4 <target name="-web-start">
5 <property name="enable.background.server" value="false"/>
6 <x-sencha-command>
7 <![CDATA[
8 fs
9 web
10 -port=${build.web.port}
11 -background=${enable.background.server}
12 start
13 -map=${build.web.root}
14 ]]>
15 </x-sencha-command>
16 </target>
17 <target name="-after-web-start"/>
18 <target name="web-start"
19 depends="-init,-before-web-start,-web-start,-after-web-start"/>
20
21 <target name="-before-web-stop"/>
22 <target name="-web-stop">
23 <!--
24 This needs to be in it's own process due to threading issues when called from a
25 target.
26 -->
27 <x-shell dir="${app.dir}">
28 ${cmd.dir}/sencha fs web -port ${build.web.port} stop
29 </x-shell>
30 </target>
31 <target name="-after-web-stop"/>
32 <target name="web-stop"
33 depends="-init,-before-web-stop,-web-stop,-after-web-stop"/>
34
35 <target name="-resolve-impl" depends="-refresh">
36 <x-ant-call target="web-start" unless="skip.web.start">
37 <param name="enable.background.server" value="true"/>
38 </x-ant-call>
39
40 <local name="app.relative.url"/>
41 <local name="build.resolve.relative.url"/>
42
43 <!--calculate the relative path from the web root to the index page-->
44 <x-get-relative-path from="${build.web.root}"
45 to="${app.page.file}"
46 property="app.relative.url"/>
47
48 <property name="build.resolve.relative.url"
49 value="${build.resolve.url}/${app.relative.url}"/>
50
51 <x-sencha-command dir="${app.dir}" inheritall="true">
52 <![CDATA[
53 app
54 resolve
55 -mode=${build.resolve.mode}
56 -uri=${build.resolve.relative.url}
57 -tpl=${build.resolve.tpl}
58 -out=${build.resolve.file}
59 ]]>
60 </x-sencha-command>
61 <x-ant-call target="web-stop" unless="skip.web.start"/>
62 <x-compile refid="${compiler.ref.id}">
63 <![CDATA[
64 restore
65 page
66 and
67 load-refs
68 -file=${build.resolve.file}
69 -defaultSrcName=@${build.tag.name}
70 -allowUnmatched=${build.resolve.allow.unmatched}
71 and
72 save
73 page
74 ]]>
75 </x-compile>
76 </target>
77
78 <target name="-before-resolve"/>
79 <target name="-resolve">
80 <x-ant-call target="-resolve-impl"/>
81 </target>
82 <target name="-after-resolve"/>
83 </project>