]> git.proxmox.com Git - extjs.git/blame - extjs/classic/theme-aria/build.xml
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / theme-aria / build.xml
CommitLineData
6527f429
DM
1<?xml version="1.0" encoding="utf-8"?>\r
2<project name="theme-aria" default=".help">\r
3 <!--\r
4 The build-impl.xml file imported here contains the guts of the build process. It is\r
5 a great idea to read that file to understand how the process works, but it is best to\r
6 limit your changes to this file.\r
7 -->\r
8 <import file="${basedir}/.sencha/package/build-impl.xml"/>\r
9\r
10 <!--\r
11 The following targets can be provided to inject logic before and/or after key steps\r
12 of the build process:\r
13\r
14 The "init-local" target is used to initialize properties that may be personalized\r
15 for the local machine.\r
16\r
17 <target name="-before-init-local"/>\r
18 <target name="-after-init-local"/>\r
19\r
20 The "clean" target is used to clean build output from the build.dir.\r
21\r
22 <target name="-before-clean"/>\r
23 <target name="-after-clean"/>\r
24\r
25 The general "init" target is used to initialize all other properties, including\r
26 those provided by Sencha Cmd.\r
27\r
28 <target name="-before-init"/>\r
29 <target name="-after-init"/>\r
30 \r
31 The "build" target performs the call to Sencha Cmd to build the application.\r
32\r
33 <target name="-before-build"/>\r
34 <target name="-after-build"/>\r
35 -->\r
36 <target name="-before-init-local">\r
37 <property name="slice.extension" value="gif"/>\r
38 </target>\r
39\r
40 <!--regenerate the example page to pick up changes to relative path to packages-->\r
41 <target name="-before-slice">\r
42 <local name="replace.pattern"/>\r
43 <local name="package.sass.example.dir"/>\r
44 <local name="theme.html.content"/>\r
45 <local name="ext.js.path"/>\r
46 <local name="ext.js.path.detected"/>\r
47 <local name="ext.js.path.exists"/>\r
48 <local name="fwk.rel.path"/>\r
49 <local name="fwk.rel.path.actual"/>\r
50\r
51 <property name="replace.pattern"\r
52 value="src=&quot;(.*/ext(.*)?.js)&quot;"/>\r
53 \r
54 <property name="package.sass.example.dir" \r
55 value="${package.dir}/sass/example"/>\r
56 \r
57 <loadfile srcfile="${package.sass.example.dir}/theme.html"\r
58 property="theme.html.content"/>\r
59 \r
60 <propertyregex property="ext.js.path"\r
61 input="${theme.html.content}"\r
62 regexp="${replace.pattern}"\r
63 select="\1"\r
64 casesensitive="false"/>\r
65 \r
66 <available file="${package.sass.example.dir}/${ext.js.path}"\r
67 property="ext.js.path.exists"/>\r
68\r
69 <if>\r
70 <not>\r
71 <isset property="ext.js.path.exists"/>\r
72 </not>\r
73 <then>\r
74 <x-get-relative-path\r
75 from="${package.sass.example.dir}"\r
76 to="${framework.dir}"\r
77 property="fwk.rel.path"\r
78 />\r
79\r
80 <available file="${package.sass.example.dir}/${fwk.rel.path}/extjs/ext-all-debug.js"\r
81 property="sencha.is.sdk.repo"/>\r
82\r
83 <if>\r
84 <isset property="sencha.is.sdk.repo"/>\r
85 <then>\r
86 <property name="fwk.rel.path.actual" value="${fwk.rel.path}/extjs"/>\r
87 </then>\r
88 <else>\r
89 <property name="fwk.rel.path.actual" value="${fwk.rel.path}"/>\r
90 </else>\r
91 </if>\r
92\r
93 <property name="ext.js.path.detected" \r
94 value="${fwk.rel.path.actual}/ext-all-debug.js"/>\r
95\r
96 <echo>Updating theme.html reference '${ext.js.path}' to '${ext.js.path.detected}'</echo>\r
97 <replace token="${ext.js.path}" \r
98 value="${ext.js.path.detected}" \r
99 file="${package.sass.example.dir}/theme.html"/>\r
100 </then>\r
101 </if>\r
102 \r
103 \r
104 </target>\r
105\r
106 <target name="-before-build">\r
107 <if>\r
108 <isset property="build.number"/>\r
109 <then>\r
110 <echo>Setting package version to ${build.number}</echo>\r
111 <x-script-def name="x-update-version-number">\r
112 <attribute name="jsonfile"/>\r
113 <attribute name="version"/>\r
114 <script src="${cmd.config.dir}/ant/JSON.js"/>\r
115 <script src="${cmd.config.dir}/ant/ant-util.js"/>\r
116 <![CDATA[\r
117 var jsonFile = attributes.get("jsonfile"),\r
118 ver = attributes.get("version") + '',\r
119 config = readJson(jsonFile);\r
120 config.version = ver;\r
121 writeJson(jsonFile, config);\r
122 ]]>\r
123 </x-script-def>\r
124\r
125 <x-update-version-number jsonfile="${package.dir}/package.json"\r
126 version="${build.number}"/>\r
127 </then>\r
128 </if>\r
129 </target>\r
130\r
131\r
132</project>\r