Skip to content

Commit

Permalink
Setting CYGWIN=nodosfilewarning env variable on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Fissore authored and cmaglie committed Jun 25, 2014
1 parent 44a6cbf commit fdffb2d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/src/processing/app/helpers/ProcessUtils.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package processing.app.helpers;

import java.io.IOException;

import processing.app.Base;

import java.io.IOException;
import java.util.Map;

public class ProcessUtils {

public static Process exec(String[] command) throws IOException {
Expand All @@ -20,6 +21,10 @@ public static Process exec(String[] command) throws IOException {
String[] cmdLine = new String[command.length];
for (int i = 0; i < command.length; i++)
cmdLine[i] = command[i].replace("\"", "\\\"");
return Runtime.getRuntime().exec(cmdLine);

ProcessBuilder pb = new ProcessBuilder(cmdLine);
Map<String, String> env = pb.environment();
env.put("CYGWIN", "nodosfilewarning");
return pb.start();
}
}

0 comments on commit fdffb2d

Please sign in to comment.