[英]‘Flex Error #1001: Digest mismatch with RSL’ when updating *just* the Flex web application
僅更新Flex Web應用程序的swf文件時,出現以下錯誤:
Flex錯誤#1001:RSL的摘要不匹配
我知道為什么會發生這種情況(因為RSL的catalog.xml中的摘要與Flex Web應用程序的swf文件所期望的不匹配),但是找不到僅成功更新Flex Web應用程序的方法。 我的問題是如何將ANT與Flex 3.6 SDK一起使用?
我試圖通過將所有RSL的compc標簽上的'compute-digest'屬性設置為false來使Flex Web應用程序忽略摘要值:
<compc compiler.as3="true"
output="${temp-swc-dir}/@{name}.swc"
incremental="false"
fork="false"
compiler.show-deprecation-warnings="false"
compiler.verbose-stacktraces="${VERBOSE}"
compute-digest="false"
>
但是,當執行mxmlc時,它不會提及摘要。 我的mxmlc標簽中是否需要更改?
<mxmlc file="${target-dir}/@{build-directory}/revolution/src/${SWF_NAME}.mxml"
output="${target-dir}/@{build-directory}/${SWF_NAME}.swf"
actionscript-file-encoding="UTF-8"
keep-generated-actionscript="false"
incremental="false"
debug="@{qa-build}"
fork="false"
static-link-runtime-shared-libraries="false"
use-network="true"
>
<runtime-shared-library-path path-element="${target-dir}/@{build-directory}/swc/as3corelib.swc">
<url rsl-url="rsl/as3corelib.swf" />
</runtime-shared-library-path>
<runtime-shared-library-path path-element="${target-dir}/@{build-directory}/swc/asx.swc">
<url rsl-url="rsl/asx.swf" />
</runtime-shared-library-path>
<runtime-shared-library-path path-element="${target-dir}/@{build-directory}/swc/top-level-tools.swc">
<url rsl-url="rsl/top-level-tools.swf" />
</runtime-shared-library-path>
<source-path path-element="${target-dir}/@{build-directory}/revolution/src" />
<!-- list of path elements that form the roots of ActionScript class hierarchies. -->
<source-path path-element="${FLEX_HOME}/frameworks" />
<!-- list of SWC files or directories that contain SWC files. -->
<compiler.library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="framework.swc" />
</compiler.library-path>
<compiler.library-path dir="${target-dir}/@{build-directory}/swc" append="true">
<include name="*.swc" />
</compiler.library-path>
<compiler.library-path dir="${target-dir}/@{build-directory}/revolution/libs" append="true">
<include name="*.swc" />
</compiler.library-path>
</mxmlc>
我認為Flex帶有更新摘要的工具。 它被稱為“消化”。 我在Wiki中記錄了從第三方SWC庫創建RSL所需的步驟。在我看來,您的RSL和SWC不再匹配。 https://dev.c-ware.de/confluence/display/PUBLIC/Creating+RSLs+from+your+3rd+party+libs因此,如果您只是從SWC創建RSL,那么您應該使用安全的一面。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.