public boolean runCommand(List<String> commands)
throws IOException
{
- List<String> args = Platform.isWindows() ? wrapWithCygwin(commands)
+ List<String> args = Platform.isWindowsAndNotJS() ? wrapWithCygwin(commands)
: commands;
try
{
ProcessBuilder pb = new ProcessBuilder(args);
pb.redirectErrorStream(true); // merge syserr to sysout
- if (Platform.isWindows())
+ if (Platform.isWindowsAndNotJS())
{
String path = pb.environment().get("Path");
path = jalview.bin.Cache.getProperty("CYGWIN_PATH") + ";" + path;
protected String getFilePath(File resultFile, boolean isInCygwin)
{
String path = resultFile.getAbsolutePath();
- if (Platform.isWindows() && isInCygwin)
+ if (Platform.isWindowsAndNotJS() && isInCygwin)
{
// the first backslash escapes '\' for the regular expression argument
path = path.replaceAll("\\" + File.separator, "/");