Just to answer my own question - the solution to configure the DBUnit
plugin to only export certain tables was :

             <configuration>
                                  <driver>${jdbc.driverClassName}</driver>
                                  <url>${jdbc.url}</url>
                                  <username>${jdbc.username}</username>
                                  <password>${jdbc.password}</password>
                                  
<dataTypeFactoryName>${dbunit.dataTypeFactoryName}</dataTypeFactoryName>
                                  <schema>${web.project.name}</schema>
                                  <format>flat</format>
                                  <tables>
                                           <list>
                                                        
<name>acl_permission</name>
                                           </list>
                                           <list>
                                                        
<name>acl_object_identity</name>
                                           </list>
                                                        <list>
                                                        <name>role</name>
                                           </list>                              
  
                                  </tables>
                                </configuration>


On 13/05/07, Dan Tran <[EMAIL PROTECTED]> wrote:
I thought, I gave you a suggest using the example, please answer to the list
and what is the exact error?



On 5/12/07, Pete <[EMAIL PROTECTED]> wrote:
> Just wondered if you guys could help with a query I sent to the Maven
> mailing list recently ?
>
> thanks
> Pete
>
> ---------- Forwarded message ----------
> From: Pete <[EMAIL PROTECTED]>
> Date: 04-May-2007 12:10
> Subject: DBUnit and table list
> To: Maven Users List < [email protected]>
>
>
> Hi there,
>
> 1) Firstly I've noticed there appears to be two DBUnit plugins, not
> sure which is best :
>
> http://mojo.codehaus.org/dbunit-maven-plugin
>
> http://maven-plugins.sourceforge.net
>
> 2) I'm trying to use the codehaus DBUnit plugin to export some data,
> but one table is giving me an error so I thought I'd provide a list of
> tables to export to the plugin configuration but not sure how to  :-
>
> The docs says there is a configurable  :-
> tables  Table[]   List of DbUnit's Table. See DbUnit's JavaDoc for details
>
> I have tried :-
>
> <tables>
>               <table>table1</table>
>               <table>table2</table>
> </tables>
>
> and <tables>table1,table2<tables>
>
> all inside the plugin's <configuration>.
>
> The plugin requires org.dbunit.ant.Table but looks like the Strings
> don't get converted to this.
> Cannot assign configuration entry 'table' to 'class
> org.dbunit.ant.Table' from 'acl_object_identity', which is of type
> class java.lang.String
>
> Help ?
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to