I think: <ant:arg value="-port 1701"/>
should be:
<ant:arg value="-port"/>
<ant:arg value="1701"/>

and so on.

- Brett

On 11/20/05, Sebastien Arbogast <[EMAIL PROTECTED]> wrote:
> I'm still trying to start a test database server just before my
> Spring+Hibernate unit tests are run.
> I applied the trick referenced in the FAQ, using j:thread to start the
> server in another thread. But now I have troubles with what I should put
> inside my custom start_test_server goal.
> Here is the excerpt from my maven.xml file :
>
> <preGoal name="test:test">
> <j:thread>
> <attainGoal name="start_test_server"/>
> </j:thread>
> <sleep seconds="10"/>
> </preGoal>
>
> <goal name="start_test_server" description="Starts the HSQL server for
> testing">
> <ant:java classname="org.hsqldb.Server" fork="true">
> <ant:arg value="-port 1701"/>
> <ant:arg value="-database.0 tagspotdb"/>
> <ant:arg value="-dbname.0 tagspotdb"/>
> <ant:classpath>
> <ant:path refid="maven.dependency.classpath"/>
> </ant:classpath>
> </ant:java>
> </goal>
>
> But when I run "maven start_test_server" to check if everything's OK, I get
> this exception :
>
> start_test_server:
> [java] java.lang.ArrayIndexOutOfBoundsException: 3
> [java] at org.hsqldb.persist.HsqlProperties.argArrayToProps(Unknown Source)
> [java] at org.hsqldb.Server.main(Unknown Source)
> [java] Exception in thread "main"
> [java] [ERROR] Java Result: 1
>
> Could anyone tell me what's wrong with my custom goal ?
>
> --
> Sébastien Arbogast
>
> Blog : http://www.sebastien-arbogast.com
> The Epseelon Project : http://www.epseelon.org
> Projet Phénix : http://phenix.netbios.fr
>
>

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

Reply via email to