1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <project name=
"theme-aria" default=
".help">
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.
8 <import file=
"${basedir}/.sencha/package/build-impl.xml"/>
11 The following targets can be provided to inject logic before and/or after key steps
14 The "init-local" target is used to initialize properties that may be personalized
15 for the local machine.
17 <target name="-before-init-local"/>
18 <target name="-after-init-local"/>
20 The "clean" target is used to clean build output from the build.dir.
22 <target name="-before-clean"/>
23 <target name="-after-clean"/>
25 The general "init" target is used to initialize all other properties, including
26 those provided by Sencha Cmd.
28 <target name="-before-init"/>
29 <target name="-after-init"/>
31 The "build" target performs the call to Sencha Cmd to build the application.
33 <target name="-before-build"/>
34 <target name="-after-build"/>
36 <target name=
"-before-init-local">
37 <property name=
"slice.extension" value=
"gif"/>
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"/>
51 <property name=
"replace.pattern"
52 value=
"src="(.*/ext(.*)?.js)""/>
54 <property name=
"package.sass.example.dir"
55 value=
"${package.dir}/sass/example"/>
57 <loadfile srcfile=
"${package.sass.example.dir}/theme.html"
58 property=
"theme.html.content"/>
60 <propertyregex property=
"ext.js.path"
61 input=
"${theme.html.content}"
62 regexp=
"${replace.pattern}"
64 casesensitive=
"false"/>
66 <available file=
"${package.sass.example.dir}/${ext.js.path}"
67 property=
"ext.js.path.exists"/>
71 <isset property=
"ext.js.path.exists"/>
75 from=
"${package.sass.example.dir}"
77 property=
"fwk.rel.path"
80 <available file=
"${package.sass.example.dir}/${fwk.rel.path}/extjs/ext-all-debug.js"
81 property=
"sencha.is.sdk.repo"/>
84 <isset property=
"sencha.is.sdk.repo"/>
86 <property name=
"fwk.rel.path.actual" value=
"${fwk.rel.path}/extjs"/>
89 <property name=
"fwk.rel.path.actual" value=
"${fwk.rel.path}"/>
93 <property name=
"ext.js.path.detected"
94 value=
"${fwk.rel.path.actual}/ext-all-debug.js"/>
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"/>
106 <target name=
"-before-build">
108 <isset property=
"build.number"/>
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"/>
117 var jsonFile = attributes.get(
"jsonfile"),
118 ver = attributes.get(
"version") + '',
119 config = readJson(jsonFile);
120 config.version = ver;
121 writeJson(jsonFile, config);
125 <x-update-version-number jsonfile=
"${package.dir}/package.json"
126 version=
"${build.number}"/>