OSDN Git Service

/usr/libexec/java_home の結果取得部の行入力不備の修正
authorseraphy <seraphy@users.osdn.me>
Thu, 3 Jan 2019 07:07:53 +0000 (16:07 +0900)
committerseraphy <seraphy@users.osdn.me>
Thu, 3 Jan 2019 07:07:53 +0000 (16:07 +0900)
src/JavaLaunch/JavaLaunch/main.m
src/main/attachment/bundle/CharacterManaJ.app/Contents/MacOS/JavaLaunch

index 55ecf0e..b54a49a 100644 (file)
@@ -28,10 +28,11 @@ NSString *FindJavaHome() {
     [task waitUntilExit];
     int exitCode = [task terminationStatus];
     if (exitCode != 0) {
-        NSLog(@"not found system java_home");
+        NSLog(@"not found system java_home (exit:%d)", exitCode);
         return nil;
     }
-    NSLog(@"found system java_home=%@", result);
+    result = [result stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
+    NSLog(@"found system java_home=(%@)", result);
     return result;
 }
 
index 51d1669..6d21435 100755 (executable)
Binary files a/src/main/attachment/bundle/CharacterManaJ.app/Contents/MacOS/JavaLaunch and b/src/main/attachment/bundle/CharacterManaJ.app/Contents/MacOS/JavaLaunch differ