mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-19 13:54:23 +01:00
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);
|
||||
}
|
||||
|
||||
try {
|
||||
rewriteKeysOfOldPlatformsTxtAndWarnAboutIt();
|
||||
} catch (IOException e) {
|
||||
throw new TargetPlatformException(e);
|
||||
if (!preferences.containsKey("rewriting") || !"disabled".equals(preferences.get("rewriting"))) {
|
||||
try {
|
||||
rewriteKeysOfOldPlatformsTxtAndWarnAboutIt();
|
||||
} catch (IOException e) {
|
||||
throw new TargetPlatformException(e);
|
||||
}
|
||||
}
|
||||
|
||||
File progFile = new File(folder, "programmers.txt");
|
||||
|
Loading…
x
Reference in New Issue
Block a user