mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
sketch of Runtime.exec() and Calendar; misc bugfixes
This commit is contained in:
@ -14,16 +14,24 @@ Java_java_lang_System_getProperty(JNIEnv* e, jclass, jint code)
|
||||
{
|
||||
enum {
|
||||
LineSeparator = 100,
|
||||
OsName = 101
|
||||
FileSeparator = 101,
|
||||
OsName = 102,
|
||||
JavaIoTmpdir = 103
|
||||
};
|
||||
|
||||
switch (code) {
|
||||
case LineSeparator:
|
||||
return e->NewStringUTF("\n");
|
||||
|
||||
case FileSeparator:
|
||||
return e->NewStringUTF("/");
|
||||
|
||||
case OsName:
|
||||
return e->NewStringUTF("posix");
|
||||
|
||||
case JavaIoTmpdir:
|
||||
return e->NewStringUTF("/tmp");
|
||||
|
||||
default:
|
||||
throwNew(e, "java/lang/RuntimeException", 0);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user