specify java.home system property in GNU Classpath build

Currently, we just set this to /tmp (or the equivalent) since Avian
doesn't really have a home.  This avoids a NullPointerException from
javax/xml/parsers/SAXParserFactory.
This commit is contained in:
Joel Dice 2010-01-04 17:14:00 -07:00
parent 664cb3cd39
commit 20f92bbd05

View File

@ -160,6 +160,7 @@ Avian_gnu_classpath_VMSystemProperties_preInit
TCHAR buffer[MAX_PATH];
GetTempPath(MAX_PATH, buffer);
setProperty(t, method, properties, "java.io.tmpdir", buffer);
setProperty(t, method, properties, "java.home", buffer);
setProperty(t, method, properties, "user.home",
_wgetenv(L"USERPROFILE"), "%ls");
@ -178,6 +179,7 @@ Avian_gnu_classpath_VMSystemProperties_preInit
setProperty(t, method, properties, "os.name", "Linux");
# endif
setProperty(t, method, properties, "java.io.tmpdir", "/tmp");
setProperty(t, method, properties, "java.home", "/tmp");
setProperty(t, method, properties, "user.home", getenv("HOME"));
setProperty(t, method, properties, "user.dir", getenv("PWD"));
#endif