[kaffe] CVS kaffe (dalibor): Added java.runtime.name and java.runtime.version properties

Kaffe CVS cvs-commits at kaffe.org
Wed Sep 15 10:40:41 PDT 2004


PatchSet 5172 
Date: 2004/09/15 15:32:22
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Added java.runtime.name and java.runtime.version properties

2004-09-15  Dalibor Topic  <robilad at kaffe.org>

        * libraries/clib/native/System.c
        (java_lang_System_initProperties) : Added
        java.runtime.name and java.runtime.version aliases
        for respective java.vm.* properties, as some code
        depends on them, despite that they are officially
        undocumented.

        Reported by: Stephane Meslin-Weber <steph at tangency.co.uk>

Members: 
	ChangeLog:1.2727->1.2728 
	libraries/clib/native/System.c:1.54->1.55 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2727 kaffe/ChangeLog:1.2728
--- kaffe/ChangeLog:1.2727	Wed Sep 15 14:30:22 2004
+++ kaffe/ChangeLog	Wed Sep 15 15:32:22 2004
@@ -1,5 +1,16 @@
 2004-09-15  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/clib/native/System.c
+	(java_lang_System_initProperties) : Added 
+	java.runtime.name and java.runtime.version aliases
+	for respective java.vm.* properties, as some code
+	depends on them, despite that they are officially 
+	undocumented.
+
+	Reported by: Stephane Meslin-Weber <steph at tangency.co.uk>
+
+2004-09-15  Dalibor Topic  <robilad at kaffe.org>
+
         * libraries/javalib/logging.properties:
 	New file. Taken from GNU Classpath.
 
Index: kaffe/libraries/clib/native/System.c
diff -u kaffe/libraries/clib/native/System.c:1.54 kaffe/libraries/clib/native/System.c:1.55
--- kaffe/libraries/clib/native/System.c:1.54	Sun Sep 12 07:55:04 2004
+++ kaffe/libraries/clib/native/System.c	Wed Sep 15 15:32:24 2004
@@ -229,6 +229,9 @@
 	 * java.class.version   Java class version number
 	 * java.class.path      Java classpath
 	 *
+	 * java.runtime.name    Alias for java.vm.name
+	 * java.runtime.version Alias for java.vm.version
+	 *
 	 * os.name              Operating System Name
 	 * os.arch              Operating System Architecture
 	 * os.version           Operating System Version
@@ -283,6 +286,10 @@
 	setProperty(p, "java.specification.vendor", kaffe_specification_vendor);
 	setProperty(p, "java.specification.name", kaffe_specification_name);
 	setProperty(p, "java.class.version", kaffe_class_version);
+
+	/* Undocumented properties used by some applications */
+	setProperty(p, "java.runtime.name", kaffe_vm_name);
+	setProperty(p, "java.runtime.version", kaffe_vm_version);
 
 	jhome = getenv(KAFFEHOME);
 	if (jhome == 0) {




More information about the kaffe mailing list