issue executing the ANT DBUnit task with XLS format

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

issue executing the ANT DBUnit task with XLS format

Mario Rodriguez-2
Hi

In previous versions of DBUnit I was able to execute the following target:

    <target name="refresh-local-database" depends="recreate-local-database">
        <taskdef name="dbunit" classname=" org.dbunit.ant.DbUnitTask" classpathref="tools" />
        <dbunit driver="com.ibm.db2.jcc.DB2Driver" url="jdbc:db2://server:port/dbname" userid="user" password="pwd" schema="schema">
            <classpath>
                <pathelement location="${driver.classpath}" />
            </classpath>
            <operation type="CLEAN_INSERT" format="xls" src="${basedir}/dbunit/testData.xls" />
        </dbunit>
    </target>

I just turned to Java 1.5 with DBUnit 2.2 and executing this target I got an error because "XLS" is not a valid input and looking at the documentation I found this:

Format type of supplied source file. Possible values are "flat" or "xml". Defaults to "flat"

at:  http://dbunit.sourceforge.net/anttask.html

Does it mean the ant DBUnit task no longer supports input from Excel files ?



--
Mario Rodriguez
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
dbunit-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dbunit-user