Not in the configuration per se, but since, the cactus task extends the junit task, is
it possible to set the fork, and specify jvmargs to pass to the new jvm? I haven't
tried this with the cactus task, but have used variations for starting our weblogic
server in debug mode.
from the ant documentation:
<junit fork="yes">
<jvmarg value="-Djava.compiler=NONE"/>
...
</junit>
so for cactus it could be something like:
<cactus fork="yes" earfile="${basedir.ejb.build}/ejb.ear" printsummary="yes"
failureproperty="tests.failed">
<jvmarg value="-Xdebug" />
<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n" />
... other stuff here...
</cactus>
the generic container is something you can use when the cactus defaults don't satisfy
your needs. maybe you need to start multiple servers (one for web and one for beans),
maybe you need to specify parameters to your server that cactus has hard coded, etc.
now, since the cactus task generally starts, tests and then stops the server, jvm
debug mode maybe not be that helpful. if you're looking to step through your code as
the cactus tests are running. you've gotta be quick to connect once it's started and
have breakpoints, etc all setup. this is where you might want to check out the
generic container since it lets you define an external task to start the container.
thus you can start the container in debug mode via one ant call, and then connect with
your ide of choice, and finally launch the cactus tests to be executed.
~mark
> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 08, 2004 10:27 AM
> To: 'Cactus Users List'
> Subject: RE: How To start Tomcat5x in jvm debug mode
>
>
> Hi Mark,
>
> It's not supported in the default configuration used by the <tomcat5x>
> element. The only solution for you right now is either to
> provide a patch
> for <tomcat5x> or to use the <generic> container element but
> you'll need to
> provide a way to start/stop Tomcat yourself.
>
> FYI, this part of Cactus is currently being extracted in the
> Cargo project
> (http://cargo.codehaus.org). So you might want to add a
> feature request in
> the Cargo project if you're interested in using Cargo in the future.
>
> Thanks
> -Vincent
>
> > -----Original Message-----
> > From: Mark Doppelfeld [mailto:[EMAIL PROTECTED]
> > Sent: mercredi 8 septembre 2004 15:56
> > To: [EMAIL PROTECTED]
> > Subject: How To start Tomcat5x in jvm debug mode
> >
> > Hi,
> >
> > I tried to figure out, how I can configure Cactus to start my Tomcat
> > container in jvm debug mode.
> > I couldn't find any hints.
> > So does anybody know where the documentation might be
> found, or how to
> > configure, please give me an answer.
> > Regards
> > Mark Doppelfeld
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]