aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/natRuntime.cc
diff options
context:
space:
mode:
authorRanjit Mathew <rmathew@hotmail.com>2002-10-20 23:47:43 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-10-20 23:47:43 +0000
commit6d0b22ecb056bc99d7ec46a6f2e677a1850a9693 (patch)
tree1d61918d965778425da2756fba696395689f02da /libjava/java/lang/natRuntime.cc
parent63bb20d4ec49941aed5694783991a9e211a83648 (diff)
downloadgcc-6d0b22ecb056bc99d7ec46a6f2e677a1850a9693.zip
gcc-6d0b22ecb056bc99d7ec46a6f2e677a1850a9693.tar.gz
gcc-6d0b22ecb056bc99d7ec46a6f2e677a1850a9693.tar.bz2
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
Diffstat (limited to 'libjava/java/lang/natRuntime.cc')
-rw-r--r--libjava/java/lang/natRuntime.cc3
1 files changed, 3 insertions, 0 deletions
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);
}