2013-04-07 45 views
-1

我使用ant自动构建swc,但构建的swc只有3K。我检查了几个解决方案,但没有什么区别,我的build.xml,帮助!使用<compc>构建SWC

我的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] 

回答

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>