Flex and ANT: Resource bundle error
I get the following error when running my ANT script:
Error: Unable to resolve resource bundle "data" for locale "en_US"
I have tried to implement all the answers I've found about this question (and there were a lot); forcing to compile to flash player 10, including all libraries, etc.. but nothing is wo开发者_如何学运维rking.
Here is my code:
<mxmlc
file="${PALM_SRC_DIR}/PALM.mxml"
output="${SHELL_DIR}/PALM.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
locale="${LOCALE}"
link-report="${OUT_DIR}"
target-player="10.0.0">
<load-config filename="C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/3.5.0frameworks/flex-config.xml" />
<source-path path-element="C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/3.5.0/frameworks" />
<compiler.include-libraries
append="true"
dir="${basedir}/libs
<include name="Cairngorm.swc"/>
<include name="CairngormEnterprise.swc"/>
<include name="fds.swc"/>
<include name="flexlib.swc"/>
</compiler.include-libraries>
<runtime-shared-library-path
path-element="${FLEX_FRAMEWORK}/framework.swc">
<url rsl-url="framework_3.5.0.12683.swz"/>
<url rsl-url="framework_3.5.0.12683.swf"/>
</runtime-shared-library-path>
</mxmlc>
what could I possibly be missing? Aren't I including all libs that I need?
I've removed the last 2 compiler.library-path options and replaced it with this: It's still not working but I feel like I'm coding it correctly because it's looking for the framework SWC as run-time shared library, which it really is.
Try this:
<mxmlc
file="${PALM_SRC_DIR}/PALM.mxml"
output="${SHELL_DIR}/PALM.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
locale="${LOCALE}"
link-report="${OUT_DIR}"
target-player="10.0.0">
<load-config filename="C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/3.5.0/frameworks/flex-config.xml" />
<source-path path-element="C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/3.5.0/frameworks" />
<compiler.include-libraries
append="true"
dir="${basedir}/libs
<include name="Cairngorm.swc"/>
<include name="CairngormEnterprise.swc"/>
<include name="fds.swc"/>
<include name="flexlib.swc"/>
</compiler.include-libraries>
</mxmlc>
Also, you should read this tutorial on how to do it properly.
精彩评论