I figured out how to do this, and want to pass along what I learned in
case anyone else has the same question.
According to several Ant resources I read, you cannot yet do this with
Ant tags, although it is frequently requested. Luckily Maven uses
Jelly, where it is easy. You can simply do this:
<preGoal name="test:test">
<j:thread>
<attainGoal name="start_test_server"/>
</j:thread>
<sleep seconds="10"/>
</preGoal>
inside the test:test preGoal.
On Thu, 24 Jul 2003, at 02:32:46 [GMT -0500] Jefferson K. French
wrote:
> In trying to learn Maven, I'm converting from a current Ant build. At
> one point I need to run a server in the background, but I can't figure
> out how to do it. Our Ant test target has lines roughly like this:
> <parallel>
> <antcall target="start_test_server"/>
> <sequential>
> <sleep seconds="10"/>
> <antcall target="run_server_tests"/>
> <antcall target="stop_test_server"/>
> </sequential>
> </parallel>
> I was thinking the start and stop server targets would be test:test
> preGoal and postGoals, respectively, and the run server target (which
> uses JUnit) would be handled by test:test.
> My problem is the test server must run in the background so the
> test:test preGoal can finish, but I don't know how do make it so. I've
> looked at the cactus plugin, but that seems to be geared towards
> appservers like Tomcat. Ours is a SOAP server using GLUE.
> Could anyone point me in the right direction? Thanks.
> Jeff
--
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]