歡迎您光臨本站 註冊首頁

請教高手: ant 編譯錯誤

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

請教高手: ant 編譯錯誤

ant dist時出現如下錯誤
BUILD FAILED
/usr/local/tomcat/webapps/tpcw/build.xml:76: Cannot perform operation from directory to file.

Total time: 0 seconds

build.xml部分(出錯)代碼如下:
<copy tofile="${srcServDir}/TPCW_Database.java" filtering="on" preservelastmodified="true">
                        <fileset dir="${basedir}" casesensitive="yes">
                                <include name="TPCW_Database.${dbName}.java"/>
                        </fileset>
                </copy>
《解決方案》

Cannot perform operation from directory to file, 已經提示了。build.xml書寫有錯!
<copy file="${src}/htdoc/Login.html" tofile="${deploy}/index.html"/>
    <copy file="${src}/config/web.xml" todir="${webinf}"/>

    <copy todir="${deploy}/javascript">
        <fileset dir="${src}/javascript"/>
        <fileset dir="${commjavascript}"/>
    </copy>
貼兩個實例給你看看!
希望對你有所幫助!

[火星人 ] 請教高手: ant 編譯錯誤已經有679次圍觀

http://coctec.com/docs/service/show-post-24014.html