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
This commit is contained in:
Ranjit Mathew 2002-10-20 23:47:43 +00:00 committed by Tom Tromey
parent 63bb20d4ec
commit 6d0b22ecb0
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
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:

View File

@ -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);
}