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

