[jetty-dev] [jira] (JETTY-1507) System properties are not getting cleared out between runs within an aggregator

"Martin Todorov (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.jetty.general
Message-ID <1686450949.76817.1336386783028.JavaMail.j2ee-jira@codehaus01.managed.contegix.com>
    [ https://jira.codehaus.org/browse/JETTY-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=298057#comment-298057 ] 

Martin Todorov commented on JETTY-1507:
---------------------------------------

Yeah, I actually had a look at the sources and I was struck by the fact that there is a specific if statement which checks if a system property has already been set and skips setting a new value. That's why I knocked up my workaround plugin. I tried looking around the code for comments explaining this behavior, but since I couldn't find any I decided to file a bug report as it's not exactly expected behavior.

There could, for example, be a boolean configuration property which tells the Jetty plugin to not set new values for already defined system property. In my opinion, if such a property is introduced, it should actually default to false.

                
> System properties are not getting cleared out between runs within an aggregator
> -------------------------------------------------------------------------------
>
>                 Key: JETTY-1507
>                 URL: https://jira.codehaus.org/browse/JETTY-1507
>             Project: Jetty
>          Issue Type: Bug
>    Affects Versions: 7.6.1
>         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 19:31:09+0200)
> Maven home: /java/apache/maven-3.0.3
> Java version: 1.6.0_19, vendor: Sun Microsystems Inc.
> Java home: /java/jdk1.6.0_19/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux", version: "2.6.36.2", arch: "i386", family: "unix"
>            Reporter: Martin Todorov
>            Assignee: Jan Bartel
>
> If you have an aggregator with several modules each of which launches Jetty before the tests and if you've defined <systemProperties><systemProperty...></systemProperties, the next module to start up Jetty will end up using the values from defined for the first module, even if you've defined different values for this module.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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