@Override public void run() { while (true) { if (session.stopped || Thread.interrupted()) { return; } try { if (!HostInfoUtils.fileExists(execEnv, experimentDirectory + "/overview")) { // NOI18N Thread.sleep(200); } else { session.ready = true; return; } } catch (InterruptedException ex) { Thread.currentThread().interrupt(); } catch (ConnectException ex) { //Exceptions.printStackTrace(ex); session.error = true; return; } catch (IOException ex) { //Exceptions.printStackTrace(ex); session.error = true; return; } } } };
private void getCompilerOutput(String arguments, List<String> options, List<String> undefinedAlternatives, boolean isGcc) { String compilerPath = getPath(); if (compilerPath == null || compilerPath.length() == 0) { return; } ExecutionEnvironment execEnv = getExecutionEnvironment(); if (execEnv.isLocal() && Utilities.isWindows()) { compilerPath = LinkSupport.resolveWindowsLink(compilerPath); } try { if (!HostInfoUtils.fileExists(execEnv, compilerPath)) { compilerPath = getDefaultPath(); if (!HostInfoUtils.fileExists(execEnv, compilerPath)) { return; } } } catch (Throwable ex) { return; } List<String> argsList = new ArrayList<String>(); argsList.addAll(Arrays.asList(arguments.trim().split(" +"))); // NOI18N ProcessUtils.ExitStatus execute = ProcessUtils.execute(execEnv, compilerPath, argsList.toArray(new String[argsList.size()])); if (execute.isOK()) { discoverFlags(execute.output, options, undefinedAlternatives, isGcc); } }
if (!HostInfoUtils.fileExists(execEnv, compilerPath)) { compilerPath = getDefaultPath(); if (!HostInfoUtils.fileExists(execEnv, compilerPath)) { return;
if (!HostInfoUtils.fileExists(exEnv, corePath)) { return new ValidationResult(Boolean.FALSE, "ERROR_CORE_DONTEXIST", true); //NOI18N
fileExists = HostInfoUtils.fileExists(execEnv, command); } catch (InterruptedException ex) { error = loc("ValidationStatus.InterruptedWhileValidation"); //NOI18N
if (!HostInfoUtils.fileExists(exEnv, exePath)) { EngineDescriptor descriptor = new EngineDescriptor(getEngine()); if (descriptor.hasCapability(EngineCapability.DERIVE_EXECUTABLE)) {
if (HostInfoUtils.fileExists(execEnv, command)) { notFound = false; break;
if (!HostInfoUtils.fileExists(env, "/proc")) { // NOI18N return ValidationStatus.invalidStatus(getMessage("ValidationStatus.ProcNotFound")); // NOI18N