Failing to define updateDatabase task

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.


  1. Putting liquibase.jar file into the ant lib folder (also made sure that it’s actually loaded into ant).

My Taks looks like this:

  1. <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
in this case I am getting an error:

build.xml:62: Could not create task or type of type: updateDatabase. 


2. Tried to define the tasks by the taskdef:

  1. <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>

Error:

/var/www/quickstart/build.xml:51: Reference /var/www/quickstart/liquibase/liquibase.jar not found. 

And the file is in the right place, and the user do have proper permissions to for it.



What am I missing?


Any idea?