On 8/1/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
Hmm, using a comma-delimitted list of values with -P does get multiple
profiles activated, but the value of databaseDriver isn't reset when the
p6spy profile is included. The order the profiles are listed doesn't
seem to have any effect; databaseDriver ends up set to the same thing
with either -Phsql,p6spy or -Pp6spy,hsql.

Any other suggestions?

I think you need to split the profiles up, and have one set that
controls which driver to use, then another set for the
database-specific configuration.

I would probably activate them with system properties (-D rather than
-P) because the configuration is more flexible.

For the driver, you need exactly one of them active (right?) so you can say
       <profile>
           <id>driver-p6spy</id>
           <activation>
               <property>
                   <name>driver</name>
                   <value>p6spy</value>
               </property>
           </activation>
           ...
and repeat for the others.  Activate with -Ddriver=p6spy (or -Ddriver=hsql.)

HTH,
--
Wendy

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

Reply via email to