2013-05-11 55 views
0

我想將phonegap2.7.0與sencha touch2.2.0整合。 我更改build-impl.xml文件以將文件複製到www。sencha2.2.0 + phonegap - build-impl.xml中的錯誤 - 刪除不支持「todir」屬性

<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 

回答

0

由於煎茶的構建是基於Ant,所以我想刪也遵循它說用dir這是刪除目錄,包括所有相同的約定其文件和子目錄。根據docs。此外,在邏輯上也沒有意義的刪除操作,所以這應該工作:

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