【问题标题】:Using <compc> to build SWC使用 <compc> 构建 SWC
【发布时间】:2013-04-07 03:34:04
【问题描述】:

我是用ant自动构建swc,但是构建的swc只有3K。查了几个解决方案,但是我的build.xml没有任何区别,求助!

我的 build.xml 如下所示

<compc debug="true" output="${OUTPUT_DIR}\ExternalLib.swc">
    <source-path path-element="${SOURCE_DIR}" />
    <include-sources dir="${SOURCE_DIR}" includes="*" />
    <external-library-path file="${AIR_SDK_HOME}\frameworks\libs\air\airglobal.swc" append=true />
</compc>

注意:我解压了 swc 并检查了 catalog.xml。不包括课程。我不知道为什么。 我的源目录结构是

src
    --PNGEncoder.as
    --Box2D
    ----Collision
    ------[Kinds of AS files]
    ----Common
    ------[Kinds of AS files]
    ----Dynamics
    ------[Kinds of AS files]
    --deng
    ----fzip
    ------[Kinds of AS files]
    ----utils
    ------[Kinds of AS files]

【问题讨论】:

    标签: actionscript-3 ant air flash-builder swc


    【解决方案1】:

    尝试更新配置为:

    <compc debug="true" output="${OUTPUT_DIR}/ExternalLib.swc">
        <source-path path-element="${SOURCE_DIR}/"/>
        <include-sources dir="${SOURCE_DIR}/" includes="*" />
    
        <include-libraries dir='${AIR_SDK_HOME}/frameworks/libs/air/' append='true'>
            <include name="airglobal.swc" />
        </include-libraries>
    </compc>
    

    【讨论】:

      猜你喜欢
      • 2012-06-17
      • 2010-11-11
      • 2010-11-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-05
      • 1970-01-01
      相关资源
      最近更新 更多