mirror of
https://github.com/corda/corda.git
synced 2025-01-16 01:40:17 +00:00
support os.name in System.getProperty
This commit is contained in:
parent
d1dbb45d55
commit
dd17a27485
@ -16,6 +16,8 @@ Java_java_lang_System_getProperty(JNIEnv* e, jclass, jstring key)
|
||||
if (chars) {
|
||||
if (strcmp(chars, "line.separator") == 0) {
|
||||
value = e->NewStringUTF("\n");
|
||||
} else if (strcmp(chars, "os.name") == 0) {
|
||||
value = e->NewStringUTF("posix");
|
||||
}
|
||||
e->ReleaseStringUTFChars(key, chars);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user