2011-09-14 221 views
1

我想讓phing與liquibase很好的工作。但是pPing給這個illustrous錯誤(我真的不能在網上找到)螞蟻失敗,liquibase路徑

Execution of target "update-database" failed for the following reason: PathElement (unknown) doesn't support the 'location' attribute. 

BUILD FAILED 
PathElement (unknown) doesn't support the 'location' attribute. 
Total time: 0.1206 seconds 

的特定命令的是:

<path id="liquibasepath"> 
    <pathelement location="${basedir}/install/lib/liquibase.jar" /> 
    <pathelement location="${basedir}/install/lib/jdbc-mysql.jar" /> 
</path> 

我試着在網上搜索,但沒有使用phing沒有良好的文檔與liquibase。而這個錯誤並沒有帶來體面的結果。

+0

乍一看,這似乎是運行liquibase ANT任務的ANT問題。你使用的是什麼版本的ANT? (我猜測它是ANT 1.6.5,現在已經很老了)。也許你可以用「更新數據庫」目標邏輯來更新你的問題,這樣你的問題就可以被重現。 –

回答

0

正確的答案應該是「路徑」屬性:這是螞蟻,而不是phing。我試圖用錯誤的程序運行它。 (在構建文件中確實應該有這種指示;))。

評論的人讓我在正確的軌道上,不能接受作爲一個答案壽。

0

請嘗試使用pathelement代替位置