File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
app/src/processing/app/helpers Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11package processing .app .helpers ;
22
3- import java .io .IOException ;
4-
53import processing .app .Base ;
64
5+ import java .io .IOException ;
6+ import java .util .Map ;
7+
78public class ProcessUtils {
89
910 public static Process exec (String [] command ) throws IOException {
@@ -20,6 +21,10 @@ public static Process exec(String[] command) throws IOException {
2021 String [] cmdLine = new String [command .length ];
2122 for (int i = 0 ; i < command .length ; i ++)
2223 cmdLine [i ] = command [i ].replace ("\" " , "\\ \" " );
23- return Runtime .getRuntime ().exec (cmdLine );
24+
25+ ProcessBuilder pb = new ProcessBuilder (cmdLine );
26+ Map <String , String > env = pb .environment ();
27+ env .put ("CYGWIN" , "nodosfilewarning" );
28+ return pb .start ();
2429 }
2530}
You can’t perform that action at this time.
0 commit comments