mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-24 22:11:56 +08:00
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:
parent
63bb20d4ec
commit
6d0b22ecb0
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user