Skip to content

Commit 54000ef

Browse files
author
jantje
committed
#772 convert to uppercase before reading build environment var
1 parent 3318d05 commit 54000ef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

io.sloeber.application/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/bin
22
/target
3+
/Thumbs.db

io.sloeber.core/src/io/sloeber/core/api/BoardDescriptor.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -824,14 +824,13 @@ public IPath getReferencingLibraryPath() {
824824
}
825825

826826
public String getUploadCommand(ICConfigurationDescription confdesc) {
827-
String upLoadProtocol = getActualUploadTool(confdesc);
828-
return Common.getBuildEnvironmentVariable(confdesc, "A.TOOLS." + upLoadProtocol + ".UPLOAD.PATTERN",
829-
upLoadProtocol);
827+
String upLoadTool = getActualUploadTool(confdesc);
828+
return Common.getBuildEnvironmentVariable(confdesc, "A.TOOLS." + upLoadTool + ".UPLOAD.PATTERN", upLoadTool);
830829
}
831830

832831
public String getActualUploadTool(ICConfigurationDescription confdesc) {
833832
if (this.myUploadTool == null && confdesc != null) {
834-
return Common.getBuildEnvironmentVariable(confdesc, "A.UPLOAD.TOOL", this.myUploadTool);
833+
return Common.getBuildEnvironmentVariable(confdesc, "A.UPLOAD.TOOL", this.myUploadTool.toUpperCase());
835834
}
836835
return this.myUploadTool;
837836
}

0 commit comments

Comments
 (0)