You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2015/12/17 23:13:11 UTC
[Bug 58310] The last globalproperty (-G) command line file parameter
overwrites all previously set global properties
https://bz.apache.org/bugzilla/show_bug.cgi?id=58310
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED
--- Comment #5 from Sebb <se...@apache.org> ---
(In reply to Lars H from comment #0)
> remoteProps.load(fis); // THIS WILL OVERWRITE ANY PREVIOUSLY
> LOADED PROPERTIES
That is _not_ true; the load method *adds* properties to the list, at least
when using Mac Java 6 and Oracle Java 7,8,9.
The following demo code shows this:
Properties p = new Properties();
p.load(new StringReader("a=1"));
p.load(new StringReader("b=2"));
p.list(System.out);
The output should be (order may vary):
-- listing properties --
b=2
a=1
--
You are receiving this mail because:
You are the assignee for the bug.