Skip to content

Commit 7302c55

Browse files
author
jantje
committed
Turned the way of handling upload recipe around for #370
Now I parse the recipe for environment variables and if I find the tool.toolchain variant I replace the string. I also created (another sigh) env var for the boards manager now with a - between the name and the version.
1 parent c18e5af commit 7302c55

File tree

3 files changed

+267
-147
lines changed

3 files changed

+267
-147
lines changed

it.baeyens.arduino.common/src/it/baeyens/arduino/common/ConfigurationPreferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static String getBoardURLs() {
102102
}
103103

104104
public static String[] getBoardURLList() {
105-
return getBoardURLs().replaceAll("\r", "").split(stringSplitter);
105+
return getBoardURLs().replaceAll(Const.RETURN, Const.EMPTY_STRING).split(stringSplitter);
106106
}
107107

108108
public static void setBoardURLs(String urls) {

it.baeyens.arduino.common/src/it/baeyens/arduino/common/Const.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public class Const {
2424
// to add all the time
2525
public static final String NEWLINE = "\n";// so I do not have //$NON-NLS-1$
2626
// to add all the time
27-
27+
public static final String RETURN = "\r";// so I do not have //$NON-NLS-1$
28+
// to add all the time
2829
// General stuff
2930
public static final String PluginStart = "it.baeyens."; //$NON-NLS-1$
3031
public static final String CORE_PLUGIN_ID = PluginStart + "arduino.core"; //$NON-NLS-1$

0 commit comments

Comments
 (0)