0

我想将 phonegap2.7.0 与 sencha touch2.2.0 集成。我更改 build-impl.xml 文件以将文件复制到 www。

<target name="-after-build">
        <delete todir="../../android/assets/www"/>
        <copy todir="../../android/assets/www">
            <fileset dir="${workspace.build.dir}/package"/>
        </copy>

    </target>

在构建期间,我收到一个错误:

[INF]
[INF] run:
[INF]
[INF] -build:
[INF]
[INF] -after-build:
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: delete doesn'''t support the "todir" attribute

[ERR]
[ERR] Total time: 55 seconds
[ERR] com.sencha.exceptions.BasicException: delete doesn't support the "todir" attribute
4

1 回答 1

0

由于 Sencha 的构建是基于Ant所以我想 delete 也遵循相同的约定,即使用dir哪个是要删除的目录,包括它的所有文件和子目录。根据文档。此外,从逻辑上来说删除操作中也没有意义,所以这应该有效:

<target name="-after-build">
    <delete dir="../../android/assets/www"/>
    <copy todir="../../android/assets/www">
        <fileset dir="${workspace.build.dir}/package"/>
    </copy>
</target>
于 2013-05-13T05:55:38.550 回答