Hi all,
I know, there are quite a few similar question that have already been asked, but I couldn’t resolve the issue with any info that was provided in the other posts.
I am trying to use liquibase ant tasks defs and tried doing in several different ways.
- Putting liquibase.jar file into the ant lib folder (also made sure that it’s actually loaded into ant).
My Taks looks like this:
-
<target name="conf_db" description="Rebuilds Test DB">
<updateDatabase
changeLogFile="${basedir}/liquibase/changelog.xml"
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/qm_test"
username="qmtest"
password="qmtest"
classpathref="${basedir}/liquibase/mysql-connector-java-5.0.8-bin.jar"
dropFirst="false"
/>
</target>
build.xml:62: Could not create task or type of type: updateDatabase.
2. Tried to define the tasks by the taskdef:
-
<target name="conf_db" description="Rebuilds Test DB">
<taskdef resource="liquibasetasks.properties">
<classpath refid="${basedir}/liquibase/liquibase.jar"/>
</taskdef>
<updateDatabase
changeLogFile="${basedir}/liquibase/changelog.xml"
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/qm_test"
username="qmtest"
password="qmtest"
classpathref="${basedir}/liquibase/mysql-connector-java-5.0.8-bin.jar"
dropFirst="false"
/>
</target>
And the file is in the right place, and the user do have proper permissions to for it./var/www/quickstart/build.xml:51: Reference /var/www/quickstart/liquibase/liquibase.jar not found.
What am I missing?