fixes for linux
This commit is contained in:
@@ -40,14 +40,17 @@ public static class PathHelper
|
||||
|
||||
public static IOPath GetJavaBinDir(string id) =>
|
||||
Path.Concat(GetJavaRuntimeDir(id), "bin");
|
||||
public static IOPath GetJavaExecutablePath(string id, bool debug)
|
||||
public static IOPath GetJavaExecutablePath(string id, bool redirectOutput)
|
||||
{
|
||||
string executable_name = "java";
|
||||
if (debug)
|
||||
executable_name += "w";
|
||||
if (!redirectOutput)
|
||||
executable_name = "javaw";
|
||||
if(OperatingSystem.IsWindows())
|
||||
executable_name += ".exe";
|
||||
return Path.Concat(GetJavaBinDir(id), executable_name);
|
||||
var path = Path.Concat(GetJavaBinDir(id), executable_name);
|
||||
if(!redirectOutput && !File.Exists(path))
|
||||
return GetJavaExecutablePath(id, true);
|
||||
return path;
|
||||
}
|
||||
|
||||
public static string GetLog4jConfigFileName() => "log4j.xml";
|
||||
|
||||
Reference in New Issue
Block a user