You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brenton Leanhardt (JIRA)" <ji...@codehaus.org> on 2006/05/16 19:17:41 UTC

[jira] Created: (MSUREFIRE-112) System properties set on the command line get clobbered

System properties set on the command line get clobbered
-------------------------------------------------------

         Key: MSUREFIRE-112
         URL: http://jira.codehaus.org/browse/MSUREFIRE-112
     Project: Maven 2.x Surefire Plugin
        Type: Bug

    Versions: 2.2    
 Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
    Reporter: Brenton Leanhardt
    Priority: Minor
     Fix For: 2.1.3


Some system properties get clobbered if you set them on the command line. For example,

mvn clean test -Dtest=LoginTest -Dselenium.user=test32

The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:

* hard coding the system property in the unit test, this worked fine.
* setting the system properties in the pom file, this worked fine also.
* tried an older version of the surefire plugin, this worked fine.



-- 
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


[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "sridhar (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174824#action_174824 ] 

sridhar commented on SUREFIRE-121:
----------------------------------

Any workaround on this issue? i'm encountering same problem and at a loss of how to proceed. 

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>         Attachments: testargs.zip
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Closed: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Fabulich closed SUREFIRE-121.
---------------------------------

    Resolution: Fixed

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: 2.4.1
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Frédéric Camblor (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=193293#action_193293 ] 

Frédéric Camblor commented on SUREFIRE-121:
-------------------------------------------

+1
In a Test framework we've made, we're executing tests in eclipse by building maven.

The test framework allow to pass system properties in order to "filter" executed test by "categories"
Example :
mvn test -Dtest.categories=non-regression
(that will only execute non regression tests during maven test phase "a la" TestNG)

Since maven 2.0.10 (which aligned with surfire 2.4.3) we no longer can use this functionnality ...

Only workarounds for us is either :
- keep maven 2.0.9 (but this is crappy !!)
- use explicitely surefire 2.4.2 (impacts on most of our poms)
- define hacks in the poms, such as :
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>${surefire.version}</version>
        <configuration>
          <systemProperties>
            <test.categories>${test.categories}</test.categories>
          </systemProperties>
        </configuration>
      </plugin>
(impacts on most of our poms, too)

This is really crappy !!!

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>         Attachments: testargs.zip
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

       

[jira] Updated: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Milos Kleint (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint updated SUREFIRE-121:
----------------------------------

         Priority: Critical  (was: Minor)
    Fix Version/s:     (was: 2.4)
                   2.x

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: 2.x
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Updated: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Fabulich updated SUREFIRE-121:
----------------------------------

    Fix Version/s:     (was: 2.x)
                   2.4.1

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: 2.4.1
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Christian Nelson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=146121#action_146121 ] 

Christian Nelson commented on SUREFIRE-121:
-------------------------------------------

Just Confirming...  with maven 2.0.9 and 2.0.10-RC11, properties set on the command line are not passed to unit tests run by surefire 2.4.3.  v2.4.2 passes the system properties.

For example:

| mvn install -Djdbc.host=192.168.2.100

With v2.4.2, System.getProperty("jdbc.host") returns 192.168.2.100.  With v.2.4.3 it returns null.

We rely on this behavior in unit tests frequently, sometime via System.getProperty() and other times indirectly through the use of Spring's [PropertyPlaceholderConfigurer|http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.html] in SYSTEM_PROPERTIES_MODE_OVERRIDEmode.

Is the plan to revert back to the 2.4.2 behavior?

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Milos Kleint (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120293 ] 

Milos Kleint commented on SUREFIRE-121:
---------------------------------------

MavenSession.getExecutionProperties() shall be the preferred call to System.getProperties()



> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: 2.x
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Updated: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-121:
----------------------------------

    Fix Version/s:     (was: 2.3)
                   2.4

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Minor
>             Fix For: 2.4
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Closed: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Fabulich closed SUREFIRE-121.
---------------------------------

    Resolution: Fixed

Fixed in revision 598217.

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Minor
>             Fix For: 2.4
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Milos Kleint (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120309 ] 

Milos Kleint commented on SUREFIRE-121:
---------------------------------------

I believe pushing the System.getProperties() to a forked process is wrong generally. 

"java.library.path", "java.class.path" and all JVM properties will be pushed from the maven process to the forked one, possibly polluting it, especially when the forked process is to be executed with a different JVM instance.

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: 2.x
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Jose Negreira (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195391#action_195391 ] 

Jose Negreira commented on SUREFIRE-121:
----------------------------------------

Hi all, I've tried a cleaner workaround:

This was the *not working* property:
mvn test -Dtest=myTest -DserverUrl=foobar
serverUrl comes null.

And this is the working property using -DargLine:
mvn test -Dtest=myTest -DargLine=-DsomeUrl=foobar
serverUrl has 'foobar' value :)

for more than 1 parameter:
mvn test -Dtest=myTest -DargLine="-DsomeUrl=foobar -DotherParam=otherValue" 

Credits for this go to Maximiliano Vazquez. (Thanks!)

HTH

Jose Negreira


> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>         Attachments: testargs.zip
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160354#action_160354 ] 

Dan Tran commented on SUREFIRE-121:
-----------------------------------

maven 2.1-M1 may have fixed it, could someone confirm?

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Reopened: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Milos Kleint (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint reopened SUREFIRE-121:
-----------------------------------


This seriously breaks embedded usage. See this email sent to mevenide's mailing list:

----
It looks like, although my tests are configured to use either
forkMode=once or forkMode=perTest, Mevenide and/or the
maven-surefire-plugin in 2.4 either do not fork or (most probably) start
these new JVMs by explicitly (and incorrectly) passing all the system
properties and property values of the currently running JVM (i.e. the
JVM running the Netbeans IDE).

This means these system properties have "interesting" values when the
JUnit test code is running, like e.g.:

javax.xml.parsers.DocumentBuilderFactory=org.netbeans.core.startup.DOMFactoryImpl
javax.xml.parsers.SAXParserFactory=org.netbeans.core.startup.SAXFactoryImpl

As these NetBeans factory classes are not available from my project's
Meven test classpath, all my XML-related tests do now fail.

In addition, I get a message about a missing Logger configuration class:

Logging configuration class "org.netbeans.core.startup.TopLogging" failed
java.lang.ClassNotFoundException: org.netbeans.core.startup.TopLogging
--

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Minor
>             Fix For: 2.x
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Chico Charlesworth (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160349#action_160349 ] 

Chico Charlesworth commented on SUREFIRE-121:
---------------------------------------------


This bug is preventing us from using 2.4.3, as we're running our tests behind a proxy, i.e. ('mvn test -Dhttp.proxyHost=<proxyHost> -Dhttp.proxyPort=<proxyPort>), and the system properties http.proxyHost and http.proxyPort are being passed in as null. With 2.4.2, it works fine.

Can someone say when we can expect this to be resolved? Or if there's another workaround for the time being?

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160356#action_160356 ] 

Dan Tran commented on SUREFIRE-121:
-----------------------------------

btw, could some one provide a small pom to prove it?

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Moved: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter moved MSUREFIRE-112 to SUREFIRE-121:
-------------------------------------------------

    Affects Version/s:     (was: 2.0 (2.2 plugin))
                       2.0 (2.2 plugin)
        Fix Version/s:     (was: 2.3)
                       2.3
                  Key: SUREFIRE-121  (was: MSUREFIRE-112)
              Project: Maven Surefire  (was: Maven 2.x Surefire Plugin)

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Minor
>             Fix For: 2.3
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Milos Kleint (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120661 ] 

Milos Kleint commented on SUREFIRE-121:
---------------------------------------

fixed the embedded use problem. 
http://svn.apache.org/viewvc?rev=613539&view=rev

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: 2.x
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Reopened: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Fabulich reopened SUREFIRE-121:
-----------------------------------


Deliberately broken in revision 652773 to fix SUREFIRE-491.

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Issue Comment Edited: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Gin-Ting Chen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156498#action_156498 ] 

Gin-Ting Chen edited comment on SUREFIRE-121 at 12/3/08 10:31 AM:
------------------------------------------------------------------

I'm also interested in what happens in this bug.

2 potential solutions.
# just toggle between the two behaviors based on a <useSystemProperties>true</useSystemProperties> flag
# allow the use of a surefire.properties file with content like:
{code}foobar=${foobar}{code}

Why properties file support for setting properties was removed for m2 I could never understand but it would be a nice quick way to solve this particular problem.

Note: This bug also breaks using profile properties which is a real PITA.

      was (Author: chengt):
    I'm also interested in what happens in this bug.

2 potential solutions.
# just toggle between the two behaviors based on a <useSystemProperties>true</useSystemProperties> flag
# allow the use of a surefire.properties file with content like:
{code}foobar=${foobar}{code}

Why properties file support for setting properties was removed for m2 I could never understand but it would be a nice quick way to solve this particular problem.
  
> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Closed: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed SUREFIRE-121.
--------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Backlog)
                   2.6
         Assignee: Benjamin Bentmann

Fixed in [r981279|http://svn.apache.org/viewvc?view=revision&revision=981279] by selectively propagating only those system properties to the tests that have been set by the user on the Maven command line via {{-Dkey=value}}, system props passed directly into the JVM via MAVEN_OPTS are not forwarded to the tests.

For this actually to work, Maven 2.1.0 or newer is required. For Maven 2.0.x, no system properties are propagated as in previous plugin versions and a warning is emitted.

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Assignee: Benjamin Bentmann
>            Priority: Critical
>             Fix For: 2.6
>
>         Attachments: testargs.zip
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160441#action_160441 ] 

Dan Tran commented on SUREFIRE-121:
-----------------------------------

I think I have a work around, may be cumbersome for some ppl

http://svn.apache.org/repos/asf/maven/surefire/trunk/surefire-integration-tests/src/test/resources/system-properties/pom.xml

note the pom use the new systemPropertyVariables,   the deprecated one systemProperties still work



> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120689 ] 

Dan Fabulich commented on SUREFIRE-121:
---------------------------------------

This hotfix switches from using System.getProperties to using MavenSession.getExecutionProperties.  MavenSession has no JavaDoc (or documentation of any kind?) so it's hard for me to tell how this hotfix works.  What sort of properties get into executionProperties?  What properties don't get into executionProperties?

http://maven.apache.org/ref/2.0.8/maven-core/apidocs/org/apache/maven/execution/MavenSession.html

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: 2.x
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Updated: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Fabulich updated SUREFIRE-121:
----------------------------------

    Fix Version/s:     (was: 2.4.1)
                   Future

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Milos Kleint (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120747 ] 

Milos Kleint commented on SUREFIRE-121:
---------------------------------------

Unfortunately most components/classes in Maven have no javadoc, MavenSession is no exception. Since the instance can be retrieved via the ${session} expression in mojos, it makes it part of the official APIs to me though. Other can have more insight on the status of the class..

Currently the command line maven put all System.getProperties() there plus any props that were added on the command line.
Embedders can choose to provide same set or limit it. (eg. in my case I now filter out any netbeans-related properties in System.getproperties() list to prevent XML parser failures)


> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: 2.x
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Issue Comment Edited: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "sridhar (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174824#action_174824 ] 

sridhar edited comment on SUREFIRE-121 at 4/30/09 4:41 PM:
-----------------------------------------------------------

Any workaround on this issue? i'm encountering same problem and at a loss of how to proceed. 

if i use 2.4.2, then i get 

java.lang.ClassNotFoundException: org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite




      was (Author: rsridharrao):
    Any workaround on this issue? i'm encountering same problem and at a loss of how to proceed. 
  
> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>         Attachments: testargs.zip
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Commented: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Gin-Ting Chen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156498#action_156498 ] 

Gin-Ting Chen commented on SUREFIRE-121:
----------------------------------------

I'm also interested in what happens in this bug.

2 potential solutions.
# just toggle between the two behaviors based on a <useSystemProperties>true</useSystemProperties> flag
# allow the use of a surefire.properties file with content like:
{code}foobar=${foobar}{code}

Why properties file support for setting properties was removed for m2 I could never understand but it would be a nice quick way to solve this particular problem.

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Updated: (MSUREFIRE-112) System properties set on the command line get clobbered

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-112?page=all ]

Brett Porter updated MSUREFIRE-112:
-----------------------------------

    Fix Version/s: 2.3

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: MSUREFIRE-112
>                 URL: http://jira.codehaus.org/browse/MSUREFIRE-112
>             Project: Maven 2.x Surefire Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Minor
>             Fix For: 2.3
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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

        

[jira] Updated: (MSUREFIRE-112) System properties set on the command line get clobbered

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-112?page=all ]

Brett Porter updated MSUREFIRE-112:
-----------------------------------

    Fix Version:     (was: 2.1.3)

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>          Key: MSUREFIRE-112
>          URL: http://jira.codehaus.org/browse/MSUREFIRE-112
>      Project: Maven 2.x Surefire Plugin
>         Type: Bug

>     Versions: 2.2
>  Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>     Reporter: Brenton Leanhardt
>     Priority: Minor

>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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


[jira] Updated: (SUREFIRE-121) System properties set on the command line get clobbered

Posted by "Stefano Fornari (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefano Fornari updated SUREFIRE-121:
-------------------------------------

    Attachment: testargs.zip

Adding a simple project to reproduce the issue

> System properties set on the command line get clobbered
> -------------------------------------------------------
>
>                 Key: SUREFIRE-121
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-121
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0
>            Reporter: Brenton Leanhardt
>            Priority: Critical
>             Fix For: Future
>
>         Attachments: testargs.zip
>
>
> Some system properties get clobbered if you set them on the command line. For example,
> mvn clean test -Dtest=LoginTest -Dselenium.user=test32
> The 'test' system property will work, but the 'selenium.user' property will be null at runtime.  I have tried:
> * hard coding the system property in the unit test, this worked fine.
> * setting the system properties in the pom file, this worked fine also.
> * tried an older version of the surefire plugin, this worked fine.

-- 
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