You can try http://jira.codehaus.org/browse/MOJO-535 -- I havent tried
it so your milage may vary.

It seems that these operations (reading properties from a file into
the maven build and writing the current maven properties to a file)
are highly desirable.  Is there any reason why maven out-of-the-box
lacks these features?

On 3/29/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
Another option is to write a plugin which would read your properties
file and attach the values to the Project, or perhaps to the
SystemProperties somehow. But I don't really know how all that would
work, or that it is even possible. I'm not much of a M2 plugin
developer at this point. ;-)

Wayne

On 3/29/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> This would require to modify the dbunit and the sql plugins...
>
> I'll have to find another strategy. Thanks anyway.
>
>
> 2007/3/29, Wayne Fay <[EMAIL PROTECTED]>:
> >
> > Others have asked this previously, and the answer remains the same:
> > this is not possible.
> >
> > Perhaps you could instead modify the dbunit plugin to read from a
> > properties file.
> >
> > Wayne
> >
> > On 3/29/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > I'm using dbunit mojo to create a clean database before my
> > integration-tests
> > > run.
> > > My DB configuration is set in the test classes via a properties file (
> > > jdbc.properties)
> > > I'd like to avoid duplicating this info in my POM.
> > >
> > > How to set the POM to read the properties and set them as system
> > properties
> > > (to be visible from the dbunit plugin) ?
> > >
> > > Any suggestion is welcome.
> > >
> > > Nico.
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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



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

Reply via email to