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