![]() | ![]() |
Apache > Jakarta > Cactus > Running Tests > Ant | Docs for: v1.7.2 | v1.7 Last update: November 29 2007 |
Resin[2x|3x] TasksThe resin2x and resin3x tasks start/stop Resin 2.x/3.x instances. Both tasks support the following parameters. Parameters
ExamplesStart a Resin 3.x instance, wait for it to be started and stop it, waiting for it to be completely stopped: <parallel> <resin3x dir="${cactus.home.resin3x}" action="start"/> <sequential> <waitfor> <http url="http://localhost:${cactus.port}"/> </waitfor> <resin3x dir="${cactus.home.resin3x}" action="stop"/> <waitfor> <not> <http url="http://localhost:${cactus.port}"/> </not> </waitfor> </sequential> </parallel> This is equivalent to the following (notice the use of the 'testurl' attribute: <resin3x dir="${cactus.home.resin3x}" action="start" testurl="http://localhost:${cactus.port}"/> <resin3x dir="${cactus.home.resin3x}" action="stop" testurl="http://localhost:${cactus.port}"/> |