Package com.intellij.execution.configurations

Examples of com.intellij.execution.configurations.GeneralCommandLine


    public static boolean checkMongoShellPath(String mongoShellPath) throws ExecutionException {
        if (isBlank(mongoShellPath)) {
            return false;
        }

        GeneralCommandLine commandLine = new GeneralCommandLine();
        commandLine.setExePath(mongoShellPath);
        commandLine.addParameter("--version");
        CapturingProcessHandler handler = new CapturingProcessHandler(commandLine.createProcess(), CharsetToolkit.getDefaultSystemCharset());
        ProcessOutput result = handler.runProcess(15 * 1000);
        return result.getExitCode() == 0;
    }
View Full Code Here

TOP

Related Classes of com.intellij.execution.configurations.GeneralCommandLine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.