|
|
|
@ -721,6 +721,7 @@ public final class yacy {
|
|
|
|
|
|
|
|
|
|
// try to find the application root path within a Mac application
|
|
|
|
|
// call com.apple.eio.FileManager.getPathToApplicationBundle();
|
|
|
|
|
if (!OS.isWindows) { // prevent that YaCy always starts with an exception message on none Apple systems
|
|
|
|
|
try {
|
|
|
|
|
// these methods will cause a warning: remove them with --illegal-access=permit
|
|
|
|
|
final Class<?> comAppleEioFileManagerClass = Class.forName("com.apple.eio.FileManager");
|
|
|
|
@ -736,7 +737,7 @@ public final class yacy {
|
|
|
|
|
} catch (ClassNotFoundException | InvocationTargetException | IllegalAccessException | IllegalArgumentException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
File dataRoot = applicationRoot;
|
|
|
|
|
//System.out.println("args.length=" + args.length);
|
|
|
|
|
//System.out.print("args=["); for (int i = 0; i < args.length; i++) System.out.print(args[i] + ", "); System.out.println("]");
|
|
|
|
|