Commit 6d0b22ec by Ranjit Mathew Committed by Tom Tromey

natRuntime.cc (insertSystemProperties): Added GCJ runtime property…

natRuntime.cc (insertSystemProperties): Added GCJ runtime property "gnu.gcj.progname" containing the name used to...

2002-10-19  Ranjit Mathew <rmathew@hotmail.com>

	* java/lang/natRuntime.cc (insertSystemProperties): Added GCJ
	runtime property "gnu.gcj.progname" containing the name used to
	invoke the current Java program (similar to argv[0] for C
	programs).

From-SVN: r58343
parent 63bb20d4
2002-10-19 Ranjit Mathew <rmathew@hotmail.com>
* java/lang/natRuntime.cc (insertSystemProperties): Added GCJ
runtime property "gnu.gcj.progname" containing the name used to
invoke the current Java program (similar to argv[0] for C
programs).
2002-10-15 Tom Tromey <tromey@redhat.com>
Fix for PR libgcj/8234:
......
......@@ -533,6 +533,9 @@ java::lang::Runtime::insertSystemProperties (java::util::Properties *newprops)
sb->toString ());
}
// The name used to invoke this process (argv[0] in C).
SET ("gnu.gcj.progname", _Jv_ThisExecutable());
// Allow platform specific settings and overrides.
_Jv_platform_initProperties (newprops);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment