Ignoring rewrite rules if rewriting=disabled is present in target platform.txt

This commit is contained in:
Federico Fissore 2015-04-01 09:01:31 +02:00
parent 29cb42eb50
commit 6e9d0e5f99
1 changed files with 6 additions and 4 deletions

View File

@ -119,11 +119,13 @@ public class LegacyTargetPlatform implements TargetPlatform {
format(_("Error loading {0}"), localPlatformsFile.getAbsolutePath()), 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");
try {