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