Hi Quinten,

The <cactus> task automates the creation of a new container (as you
rightly said). Some nested <container> elements support passing custom
config file (the <jboss3x> one even supports passing a custom container
config). 

The <tomcat?x> containers only support passing a custom server.xml file
(through the use of the serverxml attribute). However it does not
support specifying a full existing tomcat configuration). Actually we
have not had the need yet... Passing server.xml has been enough for all
cactus users need so far.

You mention other libraries. You mean jars right? These will be reused
just fine. I don't see the problem. Are you modifying something else?

OTOH if you wish to use your complete own tomcat config, you'll need to
use the <generic> container (see
http://jakarta.apache.org/cactus/integration/ant/task_cactus.html).

Thanks
-Vincent

> -----Original Message-----
> From: Quinten Verheyen [mailto:[EMAIL PROTECTED]
> Sent: 13 January 2004 17:45
> To: [EMAIL PROTECTED]
> Subject: cactus ant task on existing container ?
> 
> Hi,
> 
> I'm confused about using the cactus ant task with an existing
container
> configuration.
> 
> A tomcat container is running on my machine with a different webapps
dir
> instead of the standard webapps dir in the tomcat root.
> 
> When running test cases I started first with building a cactified war
that
> would then be deployed on the webapps dir of that container. Then my
test
> cases were run via the browser method, everything worked fine.
> 
> When I want to automate the process via the ant task, I am puzzled ..
> 
> The way I understand it, using the <cactus> task installs a new Tomcat
> container with possibly minimum config to a temp dir.
> 
> But, .. I need to run the tests on the existing tomcat container, not
on a
> new one ! It is running several other libraries that have nothing to
do
> with my test cases, but they are used by the classes that are tested.
> Objects that are in memory, etc.
> 
> So, is there a way to automatically run cactus unit tests on an
existing
> container (like I did with the non-automatic browser method) ?
> 
> Thx in advance..


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

Reply via email to