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 1
1
package processing .app .helpers ;
2
2
3
- import java .io .IOException ;
4
-
5
3
import processing .app .Base ;
6
4
5
+ import java .io .IOException ;
6
+ import java .util .Map ;
7
+
7
8
public class ProcessUtils {
8
9
9
10
public static Process exec (String [] command ) throws IOException {
@@ -20,6 +21,10 @@ public static Process exec(String[] command) throws IOException {
20
21
String [] cmdLine = new String [command .length ];
21
22
for (int i = 0 ; i < command .length ; i ++)
22
23
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 ();
24
29
}
25
30
}
You can’t perform that action at this time.
0 commit comments