The Ant documentation explains a lot about the Ant tasks created for
Cactus (cactifywar, cactus, runservertests). However, as far as I can
find, it doesn't talk much about using Ant with an existing container
that has been properly configured (for example in Tomcat, placing the
Cactus JARs in the shared/lib and adding the servlets to
conf/web.xml).

After a day or so of messing around with the cactus and runservertests
tasks, I stumbled across a handy hint buried in the mailings lists.
Hopefully this will help other developers starting with Cactus.

Pass the cactus.contextURL property to the JVM running your unit tests
(by your favorite means). See
http://jakarta.apache.org/cactus/integration/manual/howto_config.html#clientside
for more info.

Run your JUnit tests from the standard junit task as you would normally.

That's all there is to it, nothing fancy, but the info is not as easy
to find as it could be. Hope this saves someone out there some time.

-andy

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

Reply via email to