diff options
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 7 | ||||
-rw-r--r-- | libjava/java/lang/natRuntime.cc | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 16f50b4..982cc64 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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: diff --git a/libjava/java/lang/natRuntime.cc b/libjava/java/lang/natRuntime.cc index 18ec232..d0a64e7 100644 --- a/libjava/java/lang/natRuntime.cc +++ b/libjava/java/lang/natRuntime.cc @@ -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); } |