Have anyone experienced problem to start the application server with "runservertests" cactus ant task?
I first define the task useing "taskdef" and map "runservertests" to org.apache.cactus.ant.RunServerTestsTask; then I define a task which calls the "runservertests" as follows: <target name="tests_jrun"> <runservertests testURL="http://localhost/myapp" startTarget="start_jrun" stopTarget="stop_jrun" testTarget="tests"/> </target> <target name="start_jrun"> ... </target> <target name="stop_jrun"> ... </target> <target name="test"> ... </target> It looks like Ant ignores the "startTarget" attribute of the cactus ant customized task because jRun is never started. If I remove "startTarget="start_jrun" then Ant does invoke the "stop_jrun" target. But if I run "ant start_jrun", this time jRun will start as expected (which means there's no problem with my "start_jrun" target). Any ideas? I'm using Ant 1.4 + cactus 1.2 + JRun 3.1 on Windows 2000. BTW: If I use "parallel","sequential","junit","java" tasks in the "tests_jrun" target, I have no problem to start JRun, run tests, and stop JRun. Thanks. Li -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
