[kaffe] CVS kaffe (dalibor): Added necessary properties for logging
Kaffe CVS
cvs-commits at kaffe.org
Wed Sep 15 12:34:26 PDT 2004
PatchSet 5173
Date: 2004/09/15 19:30:22
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Added necessary properties for logging
2004-09-15 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/java/lang/System.java:
Added gnu.classpath.home, gnu.classpath.version
and gnu.classpath.hom.url properties.
Members:
ChangeLog:1.2728->1.2729
libraries/javalib/java/lang/System.java:1.39->1.40
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2728 kaffe/ChangeLog:1.2729
--- kaffe/ChangeLog:1.2728 Wed Sep 15 15:32:22 2004
+++ kaffe/ChangeLog Wed Sep 15 19:30:22 2004
@@ -1,5 +1,11 @@
2004-09-15 Dalibor Topic <robilad at kaffe.org>
+ * libraries/javalib/java/lang/System.java:
+ Added gnu.classpath.home, gnu.classpath.version
+ and gnu.classpath.hom.url 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
Index: kaffe/libraries/javalib/java/lang/System.java
diff -u kaffe/libraries/javalib/java/lang/System.java:1.39 kaffe/libraries/javalib/java/lang/System.java:1.40
--- kaffe/libraries/javalib/java/lang/System.java:1.39 Fri Sep 10 15:46:59 2004
+++ kaffe/libraries/javalib/java/lang/System.java Wed Sep 15 19:30:26 2004
@@ -10,6 +10,8 @@
package java.lang;
+import gnu.classpath.Configuration;
+
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileDescriptor;
@@ -40,6 +42,17 @@
// XXX what are the constraints on the initialization order in here?
properties = initProperties(new Properties());
+
+ /* Add GNU Classpath specific properties */
+ properties.put("gnu.classpath.home",
+ properties.get("java.home"));
+ properties.put("gnu.classpath.version",
+ Configuration.CLASSPATH_VERSION);
+
+ // Set base URL if not already set.
+ if (properties.get("gnu.classpath.home.url") == null)
+ properties.put("gnu.classpath.home.url",
+ "file://" + properties.get("gnu.classpath.home") + "/jre/lib");
// Initialise the I/O
if (properties.getProperty("kaffe.embedded", "false").equals("false")) {
More information about the kaffe
mailing list