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,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");