@@ -596,7 +596,7 @@ static private String[] getCommandCompilerS(String avrBasePath,
596
596
};
597
597
598
598
String command = compileFormat .format ( Args );
599
- String [] commandArray = command .split ("\| " );
599
+ String [] commandArray = command .split ("\\ |" );
600
600
return commandArray ;
601
601
}
602
602
@@ -655,7 +655,7 @@ private String[] getCommandCompilerC(String avrBasePath,
655
655
};
656
656
657
657
String command = compileFormat .format ( Args );
658
- String [] commandArray = command .split ("\| " );
658
+ String [] commandArray = command .split ("\\ |" );
659
659
return commandArray ;
660
660
}
661
661
/*
@@ -714,7 +714,7 @@ static private String[] getCommandCompilerCPP(String avrBasePath,
714
714
};
715
715
716
716
String command = compileFormat .format ( Args );
717
- String [] commandArray = command .split ("\| " );
717
+ String [] commandArray = command .split ("\\ |" );
718
718
719
719
/*
720
720
System.out.println("command:" + command);
@@ -863,7 +863,7 @@ void compileCore (String avrBasePath, String buildPath, String corePath, String
863
863
System .out .println ("compileCore(...) substitute" );
864
864
865
865
commandString = compileFormat .format ( Args );
866
- String [] commandArray = commandString .split ("\| " );
866
+ String [] commandArray = commandString .split ("\\ |" );
867
867
execAsynchronously (commandArray );
868
868
869
869
@@ -881,7 +881,7 @@ void compileLink(String avrBasePath, String buildPath, String corePath, ArrayLis
881
881
String objectFileList = "" ;
882
882
883
883
for (File file : objectFiles ) {
884
- objectFileList = objectFileList + file .getAbsolutePath () + "\ | " ;
884
+ objectFileList = objectFileList + file .getAbsolutePath () + "|" ;
885
885
}
886
886
System .out .println ("objectFileList: " + objectFileList );
887
887
@@ -900,7 +900,7 @@ void compileLink(String avrBasePath, String buildPath, String corePath, ArrayLis
900
900
configPreferences .get ("ldscript" ),
901
901
};
902
902
commandString = compileFormat .format ( Args );
903
- String [] commandArray = commandString .split ("\| " );
903
+ String [] commandArray = commandString .split ("\\ |" );
904
904
execAsynchronously (commandArray );
905
905
}
906
906
@@ -922,7 +922,7 @@ void compileEep (String avrBasePath, String buildPath, ArrayList<String> include
922
922
buildPath + File .separator + primaryClassName
923
923
};
924
924
commandString = compileFormat .format ( Args );
925
- String [] commandArray = commandString .split ("\| " );
925
+ String [] commandArray = commandString .split ("\\ |" );
926
926
execAsynchronously (commandArray );
927
927
}
928
928
@@ -944,7 +944,7 @@ void compileHex (String avrBasePath, String buildPath, ArrayList<String> include
944
944
buildPath + File .separator + primaryClassName
945
945
};
946
946
commandString = compileFormat .format ( Args );
947
- String [] commandArray = commandString .split ("\| " );
947
+ String [] commandArray = commandString .split ("\\ |" );
948
948
execAsynchronously (commandArray );
949
949
}
950
950
@@ -1016,7 +1016,7 @@ private static String preparePaths(ArrayList<String> includePaths) {
1016
1016
String includes = "" ;
1017
1017
for (int i = 0 ; i < includePaths .size (); i ++)
1018
1018
{
1019
- includes = includes + (" -I" + (String ) includePaths .get (i )) + "\ | " ;
1019
+ includes = includes + (" -I" + (String ) includePaths .get (i )) + "|" ;
1020
1020
}
1021
1021
//logger.debug("Paths prepared: " + includes);
1022
1022
return includes ;
0 commit comments