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:
committed by
Tom Tromey
parent
63bb20d4ec
commit
6d0b22ecb0
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user