开发者

Ant fails with liquibase path

开发者 https://www.devze.com 2023-04-04 15:27 出处:网络
I am trying to get phing to work nice with liquibase. But pPing gives this illustrous error (which I honestly can\'t find online)

I am trying to get phing to work nice with liquibase. But pPing gives this illustrous error (which I honestly can't find online)

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

the specific commands for that are:

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

I tried 开发者_C百科searching online but there is no good documentation for using phing with liquibase. and the error's neither turn up decent results.


Try using the "path" attribute in pathelement instead of location


The correct answer should be: This is ant, not phing. I was trying to run it with the wrong program. (there really should be some indication of this in build files ;)).

The person who commented got me on hte right track, can't accept that as an answer tho.

0

精彩评论

暂无评论...
验证码 换一张
取 消