<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
project
name
=
"Task Build Main Script"
default
=
"build"
basedir
=
"."
>
????
????
<
property
file
=
"../build.properties"
/>
????
????
<
property
name
=
"SRC_DIR"
value
=
"${basedir}/srcs"
/>
????
????
<
property
name
=
"ASSETS_DIR"
value
=
"${basedir}/assets"
/>
????
????
<
property
name
=
"CONFIG_DIR"
value
=
"${APP_ROOT}/main/config/locale"
/>
????
????
<
taskdef
resource
=
"flexTasks.tasks"
classpath
=
"${FLEX_HOME}/ant/lib/flexTasks.jar"
/>
????
<
taskdef
resource
=
"net/sf/antcontrib/antlib.xml"
>
????????
<
classpath
>
????????????
<
pathelement
location
=
"${ANT_HOME}/lib/ant-contrib-1.0b3"
/>
????????
</
classpath
>
????
</
taskdef
>
?
????
????
<
target
name
=
"createRSL"
>
????????
<
macrodef
name
=
"optimize-rsl"
>
????????????
<
attribute
name
=
"rsl-dir"
/>
????????????
<
attribute
name
=
"swc-dir"
/>
????????????
<
attribute
name
=
"swc-name"
/>
????????????
<
sequential
>
????????????????
<
unzip
src
=
"@{swc-dir}/@{swc-name}.swc"
dest
=
"@{rsl-dir}"
>
????????????????????
<
patternset
>
????????????????????????
<
include
name
=
"library.swf"
/>
????????????????????
</
patternset
>
????????????????
</
unzip
>
????????????????
<
java
jar
=
"${FLEX_HOME}/lib/optimizer.jar"
fork
=
"true"
failonerror
=
"true"
>
????????????????????
<
jvmarg
line
=
"-ea -DAS3 -DAVMPLUS -Dflexlib=${FLEX_HOME}/frameworks -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false"
/>
????????????????????
<
arg
line
=
"'@{rsl-dir}/library.swf' --output '@{rsl-dir}/@{swc-name}.swf' --keep-as3-metadata='Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient,RemoteClass' "
/>
????????????????
</
java
>
????????????????
<
delete
file
=
"@{rsl-dir}/library.swf"
/>
????????????????
<
java
jar
=
"${FLEX_HOME}/lib/digest.jar"
fork
=
"true"
failonerror
=
"true"
>
????????????????????
<
jvmarg
line
=
"-ea -DAS3 -DAVMPLUS -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false"
/>
????????????????????
<
arg
line
=
"--digest.rsl-file? @{rsl-dir}/@{swc-name}.swf --digest.swc-path? @{swc-dir}/@{swc-name}.swc"
/>
????????????????
</
java
>
????????????
</
sequential
>
????????
</
macrodef
>??????
?
????????
????????
<
optimize-rsl
rsl-dir
=
"${DEPLOY_DIR}"
swc-dir
=
"${APP_ROOT}/library/bins"
swc-name
=
"ihaveuLib_magazine"
/>
????????
<
optimize-rsl
rsl-dir
=
"${DEPLOY_DIR}"
swc-dir
=
"${APP_ROOT}/library/bins"
swc-name
=
"ihaveuLib_main"
/>
????????
<
optimize-rsl
rsl-dir
=
"${DEPLOY_DIR}"
swc-dir
=
"${APP_ROOT}/referenceLibs/bins"
swc-name
=
"PureMVC_AS3_MultiCore_1_0_5"
/>
????????
<
optimize-rsl
rsl-dir
=
"${DEPLOY_DIR}"
swc-dir
=
"${APP_ROOT}/referenceLibs/bins"
swc-name
=
"TweenLite"
/>
????
</
target
>
?
????
????
<
target
name
=
"build"
depends
=
"createRSL"
>
????????
<
exec
executable
=
"svnversion"
outputproperty
=
"revisionVersion"
/>
????????
<
copy
todir
=
"${DEPLOY_DIR}"
>
????????????
<
fileset
dir
=
"${SRC_DIR}/web_runtime"
>
????????????????
<
include
name
=
"**/**"
/>
????????????
</
fileset
>
????????
</
copy
>
?
????????
<
copy
todir
=
"${DEPLOY_DIR}/assets"
>
????????????
<
fileset
dir
=
"${ASSETS_DIR}/web_runtime"
>
????????????????
<
include
name
=
"**/**"
/>
????????????
</
fileset
>
????????????
????????????
????????????????
????????????
????????????
????????
</
copy
>
?
????????
<
mxmlc
file
=
"${DEPLOY_DIR}/index.mxml"
>
????????????
????????????
<
debug
>true</
debug
>
????????????
????????????
<
locale
>en_US</
locale
>
????????????
<
locale
>zh_CN</
locale
>
????????????
<
locale
>zh_tw</
locale
>
????????????
????????????
<
source-path
path-element
=
"${CONFIG_DIR}/en_US"
/>
????????????
<
source-path
path-element
=
"${CONFIG_DIR}/zh_CN"
/>
????????????
<
source-path
path-element
=
"${CONFIG_DIR}/zh_tw"
/>
????????????
????????????
<
runtime-shared-library-path
path-element
=
"${FLEX_HOME}/frameworks/libs/framework.swc"
>
????????????????
<
url
rsl-url
=
"http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/framework_4.1.0.16076.swz"
policy-file-url
=
"http://fpdownload.adobe.com/pub/swz/crossdomain.xml"
/>
????????????????
<
url
rsl-url
=
"framework_4.1.0.16076.swz"
/>
????????????
</
runtime-shared-library-path
>
????????????
<
runtime-shared-library-path
path-element
=
"${FLEX_HOME}/frameworks/libs/textLayout.swc"
>
????????????????
<
url
rsl-url
=
"http://fpdownload.adobe.com/pub/swz/tlf/1.1.0.604/textLayout_1.1.0.604.swz"
policy-file-url
=
"http://fpdownload.adobe.com/pub/swz/crossdomain.xml"
/>
????????????????
<
url
rsl-url
=
"textLayout_1.1.0.604.swz"
/>
????????????
</
runtime-shared-library-path
>
????????????
<
runtime-shared-library-path
path-element
=
"libs/osmf.swc"
>
????????????????
<
url
rsl-url
=
"http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/osmf_flex.4.0.0.13495.swz"
policy-file-url
=
"http://fpdownload.adobe.com/pub/swz/crossdomain.xml"
/>
????????????????
<
url
rsl-url
=
"osmf_flex.4.0.0.13495.swz"
/>
????????????
</
runtime-shared-library-path
>
????????????
<
runtime-shared-library-path
path-element
=
"${FLEX_HOME}/frameworks/libs/spark.swc"
>
????????????????
<
url
rsl-url
=
"http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/spark_4.1.0.16076.swz"
policy-file-url
=
"http://fpdownload.adobe.com/pub/swz/crossdomain.xml"
/>
????????????????
<
url
rsl-url
=
"spark_4.1.0.16076.swz"
/>
????????????
</
runtime-shared-library-path
>
????????????
<
runtime-shared-library-path
path-element
=
"${FLEX_HOME}/frameworks/libs/sparkskins.swc"
>
????????????????
<
url
rsl-url
=
"http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/sparkskins_4.1.0.16076.swz"
policy-file-url
=
"http://fpdownload.adobe.com/pub/swz/crossdomain.xml"
/>
????????????????
<
url
rsl-url
=
"sparkskins_4.1.0.16076.swz"
/>
????????????
</
runtime-shared-library-path
>
????????????
<
runtime-shared-library-path
path-element
=
"${FLEX_HOME}/frameworks/libs/rpc.swc"
>
????????????????
<
url
rsl-url
=
"http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/rpc_4.1.0.16076.swz"
policy-file-url
=
"http://fpdownload.adobe.com/pub/swz/crossdomain.xml"
/>
????????????????
<
url
rsl-url
=
"rpc_4.1.0.16076.swz"
/>
????????????
</
runtime-shared-library-path
>
????????????
????????????
<
runtime-shared-library-path
path-element
=
"${APP_ROOT}/referenceLibs/bins/PureMVC_AS3_MultiCore_1_0_5.swc"
>
????????????????
<
url
rsl-url
=
"PureMVC_AS3_MultiCore_1_0_5.swf"
policy-file-url
=
""
/>
????????????
</
runtime-shared-library-path
>
????????????
<
runtime-shared-library-path
path-element
=
"${APP_ROOT}/referenceLibs/bins/TweenLite.swc"
>
????????????????
<
url
rsl-url
=
"TweenLite.swf"
policy-file-url
=
""
/>
????????????
</
runtime-shared-library-path
>???????
?
????????????
<
runtime-shared-library-path
path-element
=
"${APP_ROOT}/library/bins/ihaveuLib_main.swc"
>
????????????????
<
url
rsl-url
=
"ihaveuLib_main.swf"
policy-file-url
=
""
/>
????????????
</
runtime-shared-library-path
>
????????????
<
runtime-shared-library-path
path-element
=
"${APP_ROOT}/library/bins/ihaveuLib_magazine.swc"
>
????????????????
<
url
rsl-url
=
"ihaveuLib_magazine.swf"
policy-file-url
=
""
/>
????????????
</
runtime-shared-library-path
>
????????????
????????????
<
external-library-path
dir
=
"${FLEX_HOME}/frameworks/libs"
append
=
"true"
>
????????????????
<
include
name
=
"*.swc"
/>
????????????????
<
include
name
=
"air/*.swc"
/>
????????????
</
external-library-path
>
????????
</
mxmlc
>
????
</
target
>
</
project
>