mirror of https://github.com/noisymime/Arduino.git
Ignoring rewrite rules if rewriting=disabled is present in target platform.txt
This commit is contained in:
parent
29cb42eb50
commit
6e9d0e5f99
|
@ -119,10 +119,12 @@ public class LegacyTargetPlatform implements TargetPlatform {
|
||||||
format(_("Error loading {0}"), localPlatformsFile.getAbsolutePath()), e);
|
format(_("Error loading {0}"), localPlatformsFile.getAbsolutePath()), e);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (!preferences.containsKey("rewriting") || !"disabled".equals(preferences.get("rewriting"))) {
|
||||||
rewriteKeysOfOldPlatformsTxtAndWarnAboutIt();
|
try {
|
||||||
} catch (IOException e) {
|
rewriteKeysOfOldPlatformsTxtAndWarnAboutIt();
|
||||||
throw new TargetPlatformException(e);
|
} catch (IOException e) {
|
||||||
|
throw new TargetPlatformException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
File progFile = new File(folder, "programmers.txt");
|
File progFile = new File(folder, "programmers.txt");
|
||||||
|
|
Loading…
Reference in New Issue