mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-18 19:05:06 +00:00
better check for defaults on jline, only enable it if not on windows
This commit is contained in:
parent
3fa08968a2
commit
d00edfb165
Binary file not shown.
@ -31,6 +31,7 @@ import org.elasticsearch.common.jna.Natives;
|
|||||||
import org.elasticsearch.common.logging.ESLogger;
|
import org.elasticsearch.common.logging.ESLogger;
|
||||||
import org.elasticsearch.common.logging.Loggers;
|
import org.elasticsearch.common.logging.Loggers;
|
||||||
import org.elasticsearch.common.logging.log4j.LogConfigurator;
|
import org.elasticsearch.common.logging.log4j.LogConfigurator;
|
||||||
|
import org.elasticsearch.common.os.OsUtils;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.monitor.jvm.JvmInfo;
|
import org.elasticsearch.monitor.jvm.JvmInfo;
|
||||||
@ -142,8 +143,8 @@ public class Bootstrap {
|
|||||||
Bootstrap bootstrap = new Bootstrap();
|
Bootstrap bootstrap = new Bootstrap();
|
||||||
String pidFile = System.getProperty("es-pidfile");
|
String pidFile = System.getProperty("es-pidfile");
|
||||||
|
|
||||||
// enable jline by default when running form "main"
|
// enable jline by default when running form "main" (and not on windows)
|
||||||
if (System.getProperty("jline.enabled") == null) {
|
if (System.getProperty("jline.enabled") == null && !OsUtils.WINDOWS) {
|
||||||
System.setProperty("jline.enabled", "true");
|
System.setProperty("jline.enabled", "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user