使用ant编译SWC文件失败:“include-sources不支持path-element属性”

时间:2013-01-05 17:35:25

标签: ant build swc compc

我正在尝试将src文件夹编译为SWC文件。 但它返回以下错误:

build.xml:9: include-sources doesn't support the "path-element" attribute

这是我的构建文件:

<project name="My SWC build" basedir="." default="compile">
<property file="build.properties"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<target name="init">
    <delete dir="${DEPLOY_DIR}"/>
    <mkdir dir="${DEPLOY_DIR}"/>
</target>
<target name="compile" depends="init">
    <compc output="${DEPLOY_DIR}/${SWC_NAME}.swc">
        <include-sources path-element="${SRC_DIR}"/>
    </compc>
</target>

1 个答案:

答案 0 :(得分:0)

Use :
<include-source dir="${SRC_DIR}"/> –or– <is dir="${SRC_DIR}"/>

instead of:
 <include-sources path-element="${SRC_DIR}"/>
相关问题