利用者向け情報

開発者向け情報

[sandbox.akabana]/tags/2012-02-20/yui-frameworks-1.5.0/yui-frameworks-builds/build-fx3.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1718 - (show annotations)
Mon Feb 20 11:46:07 2012 JST (14 months, 4 weeks ago) by e1arkw
File MIME type: text/xml
File size: 13938 byte(s)
ver.1.5 release
1 <?xml version="1.0" encoding="utf-8"?>
2 <project name="yui-frameworks" basedir="." default="all">
3 <!-- -->
4 <property file="flex3.properties" />
5 <property file="build.properties" />
6 <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}${file.separator}ant${file.separator}lib${file.separator}flexTasks.jar"/>
7
8 <!-- -->
9 <target name="all">
10 <antcall target="fx3-fp10" />
11 <antcall target="fx3-fp9" />
12
13 <antcall target="fx3-rpc-fp10" />
14 <antcall target="fx3-rpc-fp9" />
15
16 <antcall target="fx3-ds-fp10" />
17 <antcall target="fx3-ds-fp9" />
18
19 <antcall target="fx3-air-fp10" />
20 <antcall target="fx3-air-fp9" />
21
22 <antcall target="fx3-airrpc-fp10" />
23 <antcall target="fx3-airrpc-fp9" />
24
25 <antcall target="fx3-airds-fp10" />
26 <antcall target="fx3-airds-fp9" />
27 </target>
28
29 <target name="fx3-fp10">
30 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-fp10.xml" />
31 </target>
32 <target name="fx3-fp9">
33 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-fp9.xml" />
34 </target>
35 <target name="fx3-rpc-fp10">
36 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-rpc-fp10.xml" />
37 </target>
38 <target name="fx3-rpc-fp9">
39 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-rpc-fp9.xml" />
40 </target>
41 <target name="fx3-ds-fp10">
42 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-ds-fp10.xml" />
43 </target>
44 <target name="fx3-ds-fp9">
45 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-ds-fp9.xml" />
46 </target>
47 <target name="fx3-air-fp10">
48 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-air-fp10.xml" />
49 </target>
50 <target name="fx3-air-fp9">
51 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-air-fp9.xml" />
52 </target>
53 <target name="fx3-airrpc-fp10">
54 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-airrpc-fp10.xml" />
55 </target>
56 <target name="fx3-airrpc-fp9">
57 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-airrpc-fp9.xml" />
58 </target>
59 <target name="fx3-airds-fp10">
60 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-airds-fp10.xml" />
61 </target>
62 <target name="fx3-airds-fp9">
63 <ant antfile="projects${file.separator}fx3${file.separator}build-fx3-airds-fp9.xml" />
64 </target>
65
66 <macrodef name="projectInit">
67 <attribute name="projectname" />
68 <attribute name="projectdir" />
69 <sequential>
70 <echo message="@{projectname} Project initialize at @{projectdir}." />
71 <delete dir="@{projectdir}" />
72 <mkdir dir="@{projectdir}" />
73 </sequential>
74 </macrodef>
75
76 <macrodef name="projectAddSubProject">
77 <attribute name="projectdir" />
78 <attribute name="subprojectdir" />
79 <sequential>
80 <echo message="Add Project @{projectdir}" />
81
82 <!-- -->
83 <echo message="Add Include File" />
84 <property name="project-includes-config" value="@{projectdir}${FLEX_INCLUDE_CONFIG_PATH}" />
85
86 <concat destfile="${project-includes-config}" fixlastline="true" append="true" encoding="utf-8">
87 <filelist>
88 <file name="@{subprojectdir}${file.separator}${FLEX_LIB_PROPERTIES}" />
89 </filelist>
90 </concat>
91 <echo message="@{subprojectdir}${file.separator}${FLEX_LIB_PROPERTIES} add to ${project-includes-config}." />
92
93 <!-- -->
94 <echo message="Add Manifest File" />
95 <property name="project-manifest" value="@{projectdir}${FLEX_MANIFEST_PATH}" />
96
97 <concat destfile="${project-manifest}" fixlastline="true" append="true" encoding="utf-8">
98 <filelist>
99 <file name="@{subprojectdir}${FLEX_MANIFEST_PATH}" />
100 </filelist>
101 </concat>
102 <echo message="@{subprojectdir}${FLEX_MANIFEST_PATH} add to ${project-manifest}." />
103
104 <!-- -->
105 <echo message="Add Defaults CSS File" />
106 <property name="project-defaults_css" value="@{projectdir}${FLEX_DEFAULT_CSS_PATH}" />
107
108 <concat destfile="${project-defaults_css}" fixlastline="true" append="true" encoding="utf-8">
109 <filelist>
110 <file name="@{subprojectdir}${FLEX_DEFAULT_CSS_PATH}" />
111 </filelist>
112 </concat>
113 <echo message="@{subprojectdir}${FLEX_DEFAULT_CSS_PATH} add to ${project-defaults_css}." />
114
115 <!-- -->
116 <echo message="Copy Sources" />
117 <copy todir="@{projectdir}${FLEX_SRC}" overwrite="true">
118 <fileset dir="@{subprojectdir}${FLEX_SRC}">
119 <exclude name="*Classes.as" />
120 <exclude name="*.xml" />
121 <exclude name="*.properties" />
122 </fileset>
123 </copy>
124 <copy todir="@{projectdir}${FLEX_LOCALE}" overwrite="true">
125 <fileset dir="@{subprojectdir}${FLEX_LOCALE}">
126 </fileset>
127 </copy>
128 </sequential>
129 </macrodef>
130
131 <macrodef name="projectCompilePrepare">
132 <attribute name="projectdir" />
133 <sequential>
134
135 <echo message="Compile on @{projectdir}${FLEX_SWC_OUTPUT}${FLEX_SRC}." />
136
137 <property name="project-includes-config" value="@{projectdir}${file.separator}${FLEX_SWC_OUTPUT}${file.separator}${FLEX_INCLUDE_CONFIG_PATH}" />
138
139 <replaceregexp file="${project-includes-config}" replace="&lt;includeClasses&gt;&lt;/includeClasses&gt;" flags="gs" byline="false">
140 <regexp pattern="&lt;includeClasses\s*/&gt;" />
141 </replaceregexp>
142
143 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
144 <regexp pattern="&lt;/includeClasses.*?includeClasses&gt;" />
145 </replaceregexp>
146
147 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
148 <regexp pattern="&lt;includeResources.*?&lt;/namespaceManifests&gt;" />
149 </replaceregexp>
150
151 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
152 <regexp pattern="&lt;includeResources.*/&gt;" />
153 </replaceregexp>
154
155 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
156 <regexp pattern="&lt;namespaceManifests.*/&gt;" />
157 </replaceregexp>
158
159 <replaceregexp file="${project-includes-config}" replace="flex-config" flags="gs" byline="true">
160 <regexp pattern="flexLibProperties" />
161 </replaceregexp>
162
163 <replaceregexp file="${project-includes-config}" replace="flex-config xmlns=&quot;http://www.adobe.com/2006/flex-config&quot;" flags="gs" byline="true">
164 <regexp pattern="flex-config version=&quot;.+&quot;" />
165 </replaceregexp>
166
167 <replaceregexp file="${project-includes-config}" replace="includes" flags="gs" byline="true">
168 <regexp pattern="includeClasses" />
169 </replaceregexp>
170
171 <replaceregexp file="${project-includes-config}" replace="&lt;symbol&gt;" flags="gs" byline="true">
172 <regexp pattern="&lt;classEntry path=&quot;" />
173 </replaceregexp>
174
175 <replaceregexp file="${project-includes-config}" replace="&lt;/symbol&gt;" flags="gs" byline="false">
176 <regexp pattern="&quot;/&gt;" />
177 </replaceregexp>
178
179 <replaceregexp file="${project-includes-config}" replace="" flags="gs" byline="false">
180 <regexp pattern="${line.separator}" />
181 </replaceregexp>
182
183 <echo message="Check Include File is ${project-includes-config}." />
184
185 <property name="project-manifest" value="@{projectdir}${file.separator}${FLEX_SWC_OUTPUT}${file.separator}${FLEX_MANIFEST_PATH}" />
186
187 <replaceregexp file="${project-manifest}" replace="" flags="gs" byline="false">
188 <regexp pattern="&lt;/componentPackage&gt;.*?&lt;componentPackage&gt;" />
189 </replaceregexp>
190
191 <replaceregexp file="${project-manifest}" replace="" flags="gs" byline="false">
192 <regexp pattern="${line.separator}" />
193 </replaceregexp>
194
195 </sequential>
196 </macrodef>
197
198 <macrodef name="projectCompileWithFlexLibrary">
199 <attribute name="projectname" />
200 <attribute name="projectdir" />
201 <attribute name="flashplayer" />
202 <attribute name="uncaughtError" />
203 <sequential>
204 <property name="project-full-name" value="@{projectname}-${LIB_VERSION}"/>
205
206 <compc output="@{projectdir}${FLEX_OUTPUT}${file.separator}${project-full-name}${FLEX_SWC_SUFFIX}" compute-digest="true" incremental="false" debug="${LIB_DEBUG_MODE}" optimize="${LIB_OPTIMIZE}" target-player="@{flashplayer}" locale="">
207 <define name="CONFIG::DEBUG" value="${LIB_DEBUG_MODE}" />
208 <define name="CONFIG::DEBUG_EVENT" value="false" />
209 <define name="CONFIG::FP9" value="@{flashplayer} == 9" />
210 <define name="CONFIG::FP10" value="@{flashplayer} == 10" />
211 <define name="CONFIG::UNCAUGHT_ERROR_EVENT" value="@{uncaughtError} == 0" />
212 <define name="CONFIG::UNCAUGHT_ERROR_GLOBAL" value="@{uncaughtError} == 1" />
213 <load-config filename="${FLEX_HOME}${file.separator}frameworks${file.separator}flex-config.xml" />
214 <load-config filename="@{projectdir}${FLEX_INCLUDE_CONFIG_PATH}" />
215 <source-path path-element="${projectdir}${FLEX_SRC}" />
216
217 <include-namespaces uri="${LIB_NAMESPACE}" />
218
219 <namespace uri="${LIB_NAMESPACE}" manifest="@{projectdir}${FLEX_MANIFEST_PATH}" />
220
221 <include-file name="defaults.css" path="@{projectdir}${FLEX_DEFAULT_CSS_PATH}" />
222
223 <external-library-path dir="${FLEX_FRAMEWORK}" append="true">
224 <include name="libs" />
225 </external-library-path>
226 </compc>
227 </sequential>
228 </macrodef>
229
230 <macrodef name="projectCompileWithAIRFlexLibrary">
231 <attribute name="projectname" />
232 <attribute name="projectdir" />
233 <attribute name="flashplayer" />
234 <attribute name="uncaughtError" />
235 <sequential>
236 <property name="project-full-name" value="@{projectname}-${LIB_VERSION}"/>
237
238 <compc output="@{projectdir}${FLEX_OUTPUT}${file.separator}${project-full-name}${FLEX_SWC_SUFFIX}" compute-digest="true" incremental="false" debug="${LIB_DEBUG_MODE}" optimize="${LIB_OPTIMIZE}" target-player="@{flashplayer}" locale="">
239 <define name="CONFIG::DEBUG" value="${LIB_DEBUG_MODE}" />
240 <define name="CONFIG::DEBUG_EVENT" value="false" />
241 <define name="CONFIG::FP9" value="@{flashplayer} == 9" />
242 <define name="CONFIG::FP10" value="@{flashplayer} == 10" />
243 <define name="CONFIG::UNCAUGHT_ERROR_EVENT" value="@{uncaughtError} == 0" />
244 <define name="CONFIG::UNCAUGHT_ERROR_GLOBAL" value="@{uncaughtError} == 1" />
245 <load-config filename="${FLEX_HOME}${file.separator}frameworks${file.separator}air-config.xml" />
246 <load-config filename="@{projectdir}${FLEX_INCLUDE_CONFIG_PATH}" />
247 <source-path path-element="${projectdir}${FLEX_SRC}" />
248
249 <include-namespaces uri="${LIB_NAMESPACE}" />
250
251 <namespace uri="${LIB_NAMESPACE}" manifest="@{projectdir}${FLEX_MANIFEST_PATH}" />
252
253 <include-file name="defaults.css" path="@{projectdir}${FLEX_DEFAULT_CSS_PATH}" />
254
255 <external-library-path dir="${FLEX_FRAMEWORK}" append="true">
256 <include name="libs" />
257 <include name="libs/air" />
258 </external-library-path>
259 </compc>
260 </sequential>
261 </macrodef>
262
263 <macrodef name="projectRsl">
264 <attribute name="projectname" />
265 <attribute name="projectdir" />
266 <sequential>
267 <property name="project-full-name" value="@{projectname}-${LIB_VERSION}"/>
268 <property name="project-output" value="@{projectdir}${FLEX_OUTPUT}${file.separator}${project-full-name}"/>
269 <property name="project-output-swc" value="${project-output}${FLEX_SWC_SUFFIX}"/>
270 <property name="project-output-swf" value="${project-output}${FLEX_SWF_SUFFIX}"/>
271 <unzip
272 src="${project-output-swc}"
273 dest="${project-output}"
274 />
275 <java jar="${FLEX_HOME}${file.separator}lib${file.separator}optimizer.jar" fork="true" failonerror="true">
276 <jvmarg line="-ea -DAS3 -DAVMPLUS -Dflexlib='${FLEX_HOME}${file.separator}frameworks' -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false" />
277 <arg line="'${project-output}${file.separator}library.swf' --output '${project-output-swf}' --keep-as3-metadata='Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient,RemoteClass' " />
278 </java>
279 <java jar="${FLEX_HOME}${file.separator}lib${file.separator}digest.jar" fork="true" failonerror="true">
280 <jvmarg line="-ea -DAS3 -DAVMPLUS -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false"/>
281 <arg line="--digest.rsl-file '${project-output-swf}' --digest.swc-path '${project-output-swc}'"/>
282 </java>
283 </sequential>
284 </macrodef>
285 </project>

Repository Top
ViewVC Help  
ViewVC logotype
Powered by ViewVC