Hi,
On Mon, 20 Dec 2004 13:16:14 -0200, Felipe Leme <[EMAIL PROTECTED]> wrote:
> On Mon, 2004-12-20 at 12:46, Laurent PETIT wrote:
>
> > is there a way to start some main() method of a class via a maven xxx call ?
It should be easy to call the org.hsqldb.Server from maven using the
ant <java> task. Something like that in your maven.xml :
<goal name="hsql:start">
<echo>Starting HSQLDB</echo>
<ant:java classname="org.hsqldb.Server"
classpathref="maven.dependency.classpath">
<arg line="-database.0 mydb"/>
<arg line="-dbname.0 xdb"/>
</ant:java>
<echo>HSQLDB Started</echo>
</goal>
This is a starting point and is absolutly not finished. Nothing is
dynamic, location of database file need to be customized...
>
> Take a look on the test cases for the hibernate plugin, they use hsqldb
> (and hence start the server).
I may be wrong but I think they are executing HSQLDB in "In-Process
(Standalone) Mode".
>
> I was thinking about writing an hsqdlb plugin some time ago, but haven't
> had the time to play with it though...
>
> -- Felipe
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]