It looks right. Maybe the following page will help:
http://dbunit.sourceforge.net/anttask.html
Matt
On 3/15/07, Jakobsen, Peder <[EMAIL PROTECTED]> wrote:
Hi Matt,
Thanks again for your help :)
Upgraded to DBUnit 2.2 and updated lib.properties accordingly.
Still get:
C:\appfuse\appfuseCalendar>ant setup-db
Buildfile: build.xml
Trying to override old definition of datatype resources
init:
[echo] C:\appfuse\appfuseCalendar\lib/dbunit-2.2/dbunit-2.2.jar
BUILD FAILED
C:\appfuse\appfuseCalendar\build.xml:23: taskdef doesn't support the "datatypeFa
ctory" attribute
Perhaps I need to upgrade Ant as well?
Peder
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Matt
Raible
Sent: March 15,2007 4:04 PM
To: [email protected]
Subject: Re: [appfuse-user] DBunit ant task and custom datatypeFactore
to fix Boolean HSQLDB problem.
You probably need to upgrade to DbUnit 2.2. Also, you should know
that they provide an implementation of this. We're using it in
AppFuse 2.x. It's name is:
org.dbunit.ext.hsqldb.HsqldbDataTypeFactory
Matt
On 3/15/07, Jakobsen, Peder <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> DBUnit chokes on my Boolean values for HSQLDB.
>
> So I wrote my own datatypeFactory and added it to the taskdef for dbunit as
follows:
>
> <taskdef name="dbunit" classname="org.dbunit.ant.DbUnitTask"
classpathref="dao.test.classpath"
> datatypeFactory="ca.ottawa.eiad.eventscal.util.HsqlDataTypeFactory"
> />
>
>
> I get :
>
> BUILD FAILED
> C:\appfuse\appfuseCalendar\build.xml:22: taskdef doesn't support the
"datatypeFactory" attribute
>
> I followed the advice at
http://www.carbonfive.com/community/archives/2005/07/dbunit_hsql_and.html
>
> ....but no dice.
>
> My knowledge of DBUnit + Ant is minimal; if anyone has tackled this problem
successfully, please let me know, so I can write a contributtion to the Wiki.
>
> Thanks,
>
> Peder :)
>
>
>
> This e-mail originates from the City of Ottawa e-mail system. Any
> distribution, use or copying of this e-mail or the information it
> contains by other than the intended recipient(s) is unauthorized.
> If you are not the intended recipient, please notify me at the
> telephone number shown above or by return e-mail and delete this
> communication and any copy immediately. Thank you.
>
> Le présent courriel a été expédié par le système de courriels de
> la Ville d'Ottawa. Toute distribution, utilisation ou reproduction
> du courriel ou des renseignements qui s'y trouvent par une
> personne autre que son destinataire prévu est interdite. Si vous
> avez reçu le message par erreur, veuillez m'en aviser par
> téléphone (au numéro précité) ou par courriel, puis supprimer sans
> délai la version originale de la communication ainsi que toutes
> ses copies. Je vous remercie de votre collaboration.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
http://raibledesigns.com
This e-mail originates from the City of Ottawa e-mail system. Any
distribution, use or copying of this e-mail or the information it
contains by other than the intended recipient(s) is unauthorized.
If you are not the intended recipient, please notify me at the
telephone number shown above or by return e-mail and delete this
communication and any copy immediately. Thank you.
Le présent courriel a été expédié par le système de courriels de
la Ville d'Ottawa. Toute distribution, utilisation ou reproduction
du courriel ou des renseignements qui s'y trouvent par une
personne autre que son destinataire prévu est interdite. Si vous
avez reçu le message par erreur, veuillez m'en aviser par
téléphone (au numéro précité) ou par courriel, puis supprimer sans
délai la version originale de la communication ainsi que toutes
ses copies. Je vous remercie de votre collaboration.
--
http://raibledesigns.com