File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
io.sloeber.core/src/io/sloeber/core/api Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -905,8 +905,13 @@ public String getUploadCommand(ICConfigurationDescription confdesc) {
905
905
if (usesProgrammer ()) {
906
906
action = "PROGRAM" ;
907
907
}
908
- return Common .getBuildEnvironmentVariable (confdesc ,
909
- "A.TOOLS." + upLoadTool .toUpperCase () + "." + action + ".PATTERN" , upLoadTool .toUpperCase ());
908
+ String ret = Common .getBuildEnvironmentVariable (confdesc ,
909
+ "A.TOOLS." + upLoadTool .toUpperCase () + "." + action + ".PATTERN" , "" );
910
+ if (ret .isEmpty ()) {
911
+ Common .log (new Status (IStatus .ERROR , Const .CORE_PLUGIN_ID , "tools." + upLoadTool + "."
912
+ + action .toLowerCase () + ".pattern : not found in the platform.txt file" ));
913
+ }
914
+ return ret ;
910
915
}
911
916
912
917
public String getActualUploadTool (ICConfigurationDescription confdesc ) {
@@ -916,7 +921,7 @@ public String getActualUploadTool(ICConfigurationDescription confdesc) {
916
921
}
917
922
if (usesProgrammer ()) {
918
923
return Common .getBuildEnvironmentVariable (confdesc , "A.PROGRAM.TOOL" ,
919
- "Program tool not properly configured" );
924
+ "Program tool not properly configured" );
920
925
}
921
926
if (this .myUploadTool == null ) {
922
927
return Common .getBuildEnvironmentVariable (confdesc , "A.UPLOAD.TOOL" , "upload tool not properly configured" );
You can’t perform that action at this time.
0 commit comments