From: tva Date: Thu, 6 Jun 2019 13:08:58 +0000 (+0100) Subject: JAL-3285 add Cygwin environment path fix for Windows X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a7c6040f0728cbcc8945b3cec023160c31469a6e;p=jalview.git JAL-3285 add Cygwin environment path fix for Windows --- diff --git a/src/jalview/hmmer/HmmerCommand.java b/src/jalview/hmmer/HmmerCommand.java index b5c1b25..73995af 100644 --- a/src/jalview/hmmer/HmmerCommand.java +++ b/src/jalview/hmmer/HmmerCommand.java @@ -112,6 +112,12 @@ public abstract class HmmerCommand implements Runnable { ProcessBuilder pb = new ProcessBuilder(args); pb.redirectErrorStream(true); // merge syserr to sysout + if (Platform.isWindows()) + { + String path = pb.environment().get("Path"); + path = jalview.bin.Cache.getProperty("CYGWIN_PATH") + ";" + path; + pb.environment().put("Path", path); + } final Process p = pb.start(); new Thread(new Runnable() { @@ -168,6 +174,7 @@ public abstract class HmmerCommand implements Runnable } List wrapped = new ArrayList<>(); + // wrapped.add("C:\Users\tva\run"); wrapped.add(bash.getAbsolutePath()); wrapped.add("-c");