Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 82149 invoked from network); 9 Mar 2007 20:59:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 20:59:36 -0000 Received: (qmail 73175 invoked by uid 500); 9 Mar 2007 20:59:44 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 73116 invoked by uid 500); 9 Mar 2007 20:59:44 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 73105 invoked by uid 99); 9 Mar 2007 20:59:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 12:59:44 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [63.246.20.114] (HELO 63-246-20-114.contegix.com) (63.246.20.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 12:59:33 -0800 Received: (qmail 2768 invoked by uid 89); 9 Mar 2007 20:59:12 -0000 Received: from unknown (HELO codehaus01.managed.contegix.com) (127.0.0.1) by smtp.domain.com with SMTP; 9 Mar 2007 20:59:12 -0000 Message-ID: <51273936.1173473952862.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Fri, 9 Mar 2007 14:59:12 -0600 (CST) From: "Vincent Massol (JIRA)" To: issues@maven.apache.org Subject: [jira] Reopened: (SUREFIRE-101) Plugin not longer sets system properties when forking is on and debugging information is not correct In-Reply-To: <72568200.1152378922613.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/SUREFIRE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Massol reopened SUREFIRE-101: ------------------------------------- Reopening as no longer convinced this is fixed. We're getting the issue again on Cargo after removing our 2.1.3 which is the last version where it worked > Plugin not longer sets system properties when forking is on and debugging information is not correct > ---------------------------------------------------------------------------------------------------- > > Key: SUREFIRE-101 > URL: http://jira.codehaus.org/browse/SUREFIRE-101 > Project: Maven Surefire > Issue Type: Bug > Affects Versions: 2.0 (2.2 plugin) > Reporter: Vincent Massol > Assigned To: Vincent Massol > Priority: Blocker > Fix For: 2.3 > > Attachments: MSUREFIRE-145.zip > > > The following code is in SurefirePlugin.java: > {code:java} > processSystemProperties( !fork.isForking() ); > if ( getLog().isDebugEnabled() ) > { > showMap( systemProperties, "system property" ); > } > {code} > 2 problems: > 1) fork.isForking() is false when forking is enabled and thus system properties are not set: > {code:java} > protected void processSystemProperties( boolean setInSystem ) > { > [...] > if ( setInSystem ) > { > // Add all system properties configured by the user > Iterator iter = systemProperties.keySet().iterator(); > while ( iter.hasNext() ) > { > String key = (String) iter.next(); > String value = systemProperties.getProperty( key ); > System.setProperty( key, value ); > } > } > } > {code} > 2) showMap() is called regardless of whether the system properties are set or not, leading to the following kind of misleading logs: > {noformat} > [...] > [DEBUG] Setting system property [cargo.jetty4x.port]=[8280] > [DEBUG] Setting system property [cargo.jetty6x.port]=[8280] > [DEBUG] Setting system property [cargo.jetty5x.port]=[8280] > [...] > {noformat} > Those properties are actually NOT set. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira