RE: [mevenide-user] support for test-debug goal

"Mohni, Daniel" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <B91E33CF995E4F46811E25CD877F384C022B319B@GBMK-EXCH3.eu.uis.unisys.com>
hmmm

the default fork mode of shurefire is once, therefore
the tests will run in a different jvm as the mvn process
using the argLine specified as arguments.

is this correct ?

another question, is the maven-embedder running in his own jvm
when running goals ?

Another way to solve this requirement would be to have a special
test configuration for maven2 projects, exposing some of the
surefire properties, no idea if this is usefull or if the
configuration of the pom realy needs to be overriden from the ide... 

just thinking abot options....

Anyone else on the list to comment on this ?

Daniel


> -----Original Message-----
> From: Milos Kleint [mailto:[email protected]] 
> Sent: Friday, September 14, 2007 8:21 AM
> To: [email protected]
> Subject: Re: [mevenide-user] support for test-debug goal
> 
> can't be done. the forkMode and argLine parameters on the command line
> are unique to the surefire-plugin. Each plugin can have different
> parameters which I'm not able to anticipate.
> 
> Milos
> 
> On 9/14/07, Mohni, Daniel <[email protected]> wrote:
> > what about adding a checkbox to the Custom/Goals Dialog
> > like
> >         [] Attach Debugger
> >
> > then everybody can use this easily on any target....
> >
> > Daniel
> >
> > > -----Original Message-----
> > > From: Milos Kleint [mailto:[email protected]]
> > > Sent: Friday, September 14, 2007 7:47 AM
> > > To: [email protected]
> > > Subject: Re: [mevenide-user] support for test-debug goal
> > >
> > > you can execute it as "Custom/Goals:" and in the dialog 
> check that you
> > > want to remember that for the given project (there's an 
> enhancement
> > > filed requesting to be able to create a global list for 
> all projects-
> > > http://www.netbeans.org/issues/show_bug.cgi?id=97358)
> > > then the "Debug Test" items shows up under "Custom" 
> submenu. That's
> > > the preferred solution from my point of view as other 
> project types
> > > (ant-based ones) don't have this action either.
> > >
> > > Milos
> > >
> > > On 9/14/07, Mohni, Daniel <[email protected]> wrote:
> > > > Tnx Milos,
> > > >
> > > > Is it possible to add this as a netbeans action in the context
> > > > menu of a maven project/module ?
> > > >
> > > > like:
> > > >         Run             (existing)
> > > >         Debug           (existing)
> > > >         Test            (existing)
> > > >         Test Debug      (new)
> > > >
> > > > maybe thiss is a feature request ?
> > > >
> > > > Daniel
> > > >
> > > > > -----Original Message-----
> > > > > From: Milos Kleint [mailto:[email protected]]
> > > > > Sent: Friday, September 14, 2007 7:30 AM
> > > > > To: [email protected]
> > > > > Subject: Re: [mevenide-user] support for test-debug goal
> > > > >
> > > > > AFAIK this shall do.
> > > > >
> > > > > mvn -DforkMode=once -DargLine="-Xdebug -J-Xnoagent
> > > > >
> > > 
> -Xrunjdwp:transport=dt_socket,suspend=y,server=y,address=8888" test
> > > > >
> > > > > then attach the debugger in the IDE to localhost:8888
> > > > >
> > > > > Milos
> > > > >
> > > > > On 9/14/07, Mohni, Daniel <[email protected]> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > currently I can debug a junit test file inside a 
> maven project,
> > > > > > but i can not automaticly start a test session (mvn 
> test) and
> > > > > > attach the debugger to that session.
> > > > > >
> > > > > > Is there an easy way to do this ?
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > > Daniel
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > 
> ---------------------------------------------------------------------
> > > > > > To unsubscribe from this list please visit:
> > > > > >
> > > > > >     http://xircles.codehaus.org/manage_email
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > 
> ---------------------------------------------------------------------
> > > > > To unsubscribe from this list please visit:
> > > > >
> > > > >     http://xircles.codehaus.org/manage_email
> > > > >
> > > > >
> > > >
> > > >
> > > 
> ---------------------------------------------------------------------
> > > > To unsubscribe from this list please visit:
> > > >
> > > >     http://xircles.codehaus.org/manage_email
> > > >
> > > >
> > >
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> > >
> > >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.