Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 72250 invoked from network); 17 Mar 2006 03:38:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Mar 2006 03:38:27 -0000 Received: (qmail 99987 invoked by uid 500); 17 Mar 2006 03:38:25 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 99936 invoked by uid 500); 17 Mar 2006 03:38:24 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 99924 invoked by uid 99); 17 Mar 2006 03:38:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 19:38:24 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of goyathlay.geronimo@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO pproxy.gmail.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 19:38:23 -0800 Received: by pproxy.gmail.com with SMTP id n25so727407pyg for ; Thu, 16 Mar 2006 19:38:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e6cMi2s73zmYuV9WLIxCXdCutbCh/Pdf1bT7WVo0CSGzgPi3ld4/pyNLSFMPOl9Mj8ywUCxPKMiBSFQTBG1aSsmsnoy2rXPCVqVlwBlauQqntbUJYCRF3zVRwCzrkS5P6ssTHjjN42Lu1Axyo8PJdxF2ULKf5CgxSGrXnGY7leI= Received: by 10.35.119.11 with SMTP id w11mr102028pym; Thu, 16 Mar 2006 19:38:02 -0800 (PST) Received: by 10.35.34.5 with HTTP; Thu, 16 Mar 2006 19:38:02 -0800 (PST) Message-ID: Date: Thu, 16 Mar 2006 22:38:02 -0500 From: "Prasad Kashyap" To: dev@geronimo.apache.org Subject: Re: [jira] Commented: (MSUREFIRE-78) forkMode=once or pertest does not work on windows In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060316135808.16101.qmail@web31706.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N OK. Here's the deal. In surefire-plugin 2.1.3, the system property basedir was accurately available to the tests. In surefire-plugin 2.2, the system property basedir is no longer available to the tests. However, if a module's forkmode is set to "pertest", then it's basedir is set in the system property. That then becomes available to the any other modules downstream that tries to read it from the environment. The 4 modules system, j2ee, security and connector-builder have their forkmode set to pertest. So any other module downstream that tries to read basedir from the system property gets the basedir of the latest of those 4 modules whose test executed. Cheers Prasad. On 3/16/06, Prasad Kashyap 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. > > The same problems are not seen in surefire 2.1.3-SNAPSHOT plugin. > > Cheers > Prasad > > On 3/16/06, Prasad Kashyap wrote: > > I added the following section to the 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. > > > > > > > > true > > > > Apache CVS > > Apache CVS of the Central Repository > > http://cvs.apache.org/maven-snapshot-repository > > > > > > Cheers > > Prasad > > > > On 3/16/06, Prasad Kashyap wrote: > > > Hmm.. I tried to use the 2.2-SNAPSHOT. It couldn't find that in any r= epo. > > > > > > I tried to build it. But the copy in the trunk still says, 2.1.3-SNAP= SHOT . > > > (http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-surefire= -plugin/pom.xml?view=3Dmarkup) > > > > > > I couldn't find the discussion in the maven dev list that Brett menti= oned. > > > > > > I am missing something here. > > > > > > > > > Cheers > > > Prasad > > > > > > > > > On 3/16/06, anita kulshreshtha 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)" > > > > To: a_kulshre@yahoo.com > > > > Date: Wed, 15 Mar 2006 20:16:32 -0600 (CST) > > > > Subject: [jira] Commented: (MSUREFIRE-78) forkMode=3Donce or pertes= t does not work on windows > > > > [ http://jira.codehaus.org/browse/MSUREFIRE-78?page=3Dcomments#= 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=3Donce 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=3Donce test', > > > > > I get BUILD ERROR. The surefire-reports directory is not created.= One of the 3 files left behind in the target directory is > > > > > surefire-classloader.properties. Its contents are : > > > > > #classpath entries > > > > > #Wed Mar 15 08:09:47 EST 2006 > > > > > childDelegation=3Dtrue > > > > > classpath=3DD\:\\xxxxx\\geronimo\\build\\geronimo-m2\\modules\\ke= rnel\\target\\test-classes\:D\:\\xxxxx\\geronimo\\build\\geronimo-m2\\modul= es\\kernel\\target\\classes\:C\:\\Documents and Settings\\User\\.m2\\reposi= tory\\junit\\junit\\3.8.1\\junit-3.8.1.jar\:C\:\\Documents and Settings\\Us= er\\.m2\\repository\\org\\apache\\maven\\maven-plugin-api\\2.0\\maven-plugi= n-api-2.0.jar\:C\:\\Documents and Settings\\User\\.m2\\repository\\org\\apa= che\\maven\\surefire\\surefire\\1.5.3-SNAPSHOT\\surefire-1.5.3-SNAPSHOT.jar > > > > > It uses ':' as a path separator. This issue was discusses earl= ier in Msurefire-76 and closed. > > > > > > > > -- > > > > This message is automatically generated by JIRA. > > > > - > > > > If you think it was sent incorrectly contact one of the administrat= ors: > > > > http://jira.codehaus.org/secure/Administrators.jspa > > > > - > > > > For more information on JIRA, see: > > > > http://www.atlassian.com/software/jira > > > > > > > > > > > > > > > > > > > > > >