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
2 changed files with 10 additions and 0 deletions
|
@ -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>
|
2002-10-15 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
Fix for PR libgcj/8234:
|
Fix for PR libgcj/8234:
|
||||||
|
|
|
@ -533,6 +533,9 @@ java::lang::Runtime::insertSystemProperties (java::util::Properties *newprops)
|
||||||
sb->toString ());
|
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.
|
// Allow platform specific settings and overrides.
|
||||||
_Jv_platform_initProperties (newprops);
|
_Jv_platform_initProperties (newprops);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue