geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anita kulshreshtha <a_kuls...@yahoo.com>
Subject Re: [jira] Commented: (MSUREFIRE-78) forkMode=once or pertest does not work on windows
Date Fri, 17 Mar 2006 14:52:20 GMT
     The jvm is being forked in the geronimo
directory.
All the paths in java.io are resolved against user.dir
file:///D:/mytools/javadoc1.4/docs/api/index.html
    I have tested that the user.dir is set to
..../geronimo 
and not .../geronimo/modules/a-module.

Thnaks
Anita

--- Prasad Kashyap <goyathlay.geronimo@gmail.com>
wrote:

> Since security is not working for me I cannot
> recreate your scenario
> and debug it. But if you can find the same problem
> in any other
> module, please let me know and I'll try it out for
> you.
> 
> Let me also know if it this problem occurs with
> 2.1.3 or 2.2 version
> of the surefire plugin.
> 
> Cheers
> Prasad
> 
> On 3/17/06, anita kulshreshtha <a_kulshre@yahoo.com>
> wrote:
> > comments inline.........
> >
> > --- Prasad Kashyap <goyathlay.geronimo@gmail.com>
> > wrote:
> >
> > > There are issues with the 2.2-SNAPSHOT.
> > >
> > > 1. With the connector module:
> > > The connector module tests don't fail but spews
> a
> > > lot, A LOT, of a
> > > java.lang.AssertError.
> > >
> > > 2. With the "basedir" system property:
> > > The system property "basedir" set by the
> > > connector-builder module
> > > seems to be stuck and used by other modules
> > > following it. So the tests
> > > for the client-builder fails. When
> client-builder
> > > module's
> > > PlanParsingTest reads the "basedir" system
> property,
> > > it gets it as set
> > > to connector-builder !! If you skip the
> > > client-builder tests, then
> > > tests of directory module downstream fails for
> the
> > > same reason. When
> > > you skip the connector-builder tests, the
> "basedir"
> > > is set to j2ee,
> > > another module further upstream.
> >        I think the problem is that surefire is not
> > forking the jvm in the correct directory.
> > For example if mvn -Dmodule=security is used
> > basedir is set correctly to
> > ..geronimo/modules/security (have tested this with
> > 2.1.3-SNAPSHOT).
> > But the jvm is forked in geronimo directory. In
> maven1
> > maven.junit.dir could be used to set this
> directory.
> > But surefire does not have a similar property. So
> I
> > can not test this. But this does expalin the
> strange
> > paths  like
> > .......geronimo/./target/..... in many modules.
> >      Does this make sense?
> >
> > Thnaks
> > Anita
> >
> >
> > >
> > > The same problems are not seen in surefire
> > > 2.1.3-SNAPSHOT plugin.
> > >
> > > Cheers
> > > Prasad
> > >
> > > On 3/16/06, Prasad Kashyap
> > > <goyathlay.geronimo@gmail.com> wrote:
> > > > I added the following section to the
> > > <pluginRepositories> and now it
> > > > downloaded the surefire-plugin 2.2-SNAPSHOT.
> But
> > > it also downloaded a
> > > > LOT of other pluigns too. So I am not sure if
> what
> > > I did was right.
> > > >
> > > >   <pluginRepository>
> > > >       <releases>
> > > >         <enabled>true</enabled>
> > > >       </releases>
> > > >       <id>Apache CVS</id>
> > > >       <name>Apache CVS of the Central
> > > Repository</name>
> > > >
> > >
> >
>
<url>http://cvs.apache.org/maven-snapshot-repository</url>
> > > >    </pluginRepository>
> > > >
> > > > Cheers
> > > > Prasad
> > > >
> > > > On 3/16/06, Prasad Kashyap
> > > <goyathlay.geronimo@gmail.com> wrote:
> > > > > Hmm.. I tried to use the 2.2-SNAPSHOT. It
> > > couldn't find that in any repo.
> > > > >
> > > > > I tried to build it. But the copy in the
> trunk
> > > still says, 2.1.3-SNAPSHOT .
> > > > >
> > >
> >
>
(http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-surefire-plugin/pom.xml?view=markup)
> > > > >
> > > > > I couldn't find the discussion in the maven
> dev
> > > list that Brett mentioned.
> > > > >
> > > > > I am missing something here.
> > > > >
> > > > >
> > > > > Cheers
> > > > > Prasad
> > > > >
> > > > >
> > > > > On 3/16/06, anita kulshreshtha
> > > <a_kulshre@yahoo.com> wrote:
> > > > > > Jacek,
> > > > > >   We need to change to surefire-plugin
> version
> > > > > > 2.2-SNAPSHOT.
> > > > > >
> > > > > > Thnaks
> > > > > > Anita
> > > > > > Note: forwarded message attached.
> > > > > >
> > > > > >
> > > > > >
> > >
> __________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Tired of spam?  Yahoo! Mail has the best
> spam
> > > protection around
> > > > > > http://mail.yahoo.com
> > > > > >
> > > > > >
> > > > > > ---------- Forwarded message ----------
> > > > > > From: "Brett Porter (JIRA)"
> > > <jira@codehaus.org>
> > > > > > To: a_kulshre@yahoo.com
> > > > > > Date: Wed, 15 Mar 2006 20:16:32 -0600
> (CST)
> > > > > > Subject: [jira] Commented: (MSUREFIRE-78)
> > > forkMode=once or pertest does not work on
> windows
> > > > > >     [
> > >
> >
>
http://jira.codehaus.org/browse/MSUREFIRE-78?page=comments#action_61177
> > > ]
> > > > > >
> > > > > > Brett Porter commented on MSUREFIRE-78:
> > > > > > ---------------------------------------
> > > > > >
> > > > > > It requires 2.2-SNAPSHOT of the surefire
> > > plugin. Instructions were details on the
> dev@maven
> > > list if that's necessary.
> > > > > >
> > > > > > > forkMode=once or pertest does not work
> on
> > > windows
> > > > > > >
> > >
> -------------------------------------------------
> > > > > > >
> > > > > > >          Key: MSUREFIRE-78
> > > > > > >          URL:
> > > http://jira.codehaus.org/browse/MSUREFIRE-78
> > > > > > >      Project: Maven 2.x Surefire Plugin
> > > > > > >         Type: Bug
> > > > > >
> > > > > > >  Environment: Win Xp
> > > > > > >     Reporter: Anita Kulshreshtha
> > > > > > >     Assignee: Brett Porter
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I am building a simple
> HelloWorldTest.java.
> > > The test builds fine with 'mvn test'. When I use
> > > 'mvn -DforkMode=once test',
> > > > > > > I get BUILD ERROR. The surefire-reports
> > > directory is not created. One of the 3 files
> left
> > > behind in the target directory is
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Mime
View raw message