Changeset 6584 in josm
- Timestamp:
- 2014-01-01T12:06:54+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r6583 r6584 5 5 6 6 import java.io.BufferedReader; 7 import java.io.File;8 import java.io.FileInputStream;9 7 import java.io.InputStreamReader; 10 8 import java.io.Reader; … … 45 43 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException; 46 44 import org.openstreetmap.josm.gui.widgets.EditableList; 45 import org.openstreetmap.josm.io.MirroredInputStream; 47 46 import org.openstreetmap.josm.tools.CheckParameterUtil; 48 47 import org.openstreetmap.josm.tools.GBC; … … 395 394 addMapCSS("geometry"); 396 395 for (final String i : sourcesProperty.get()) { 397 final String file = new File(i).getAbsolutePath();398 396 try { 399 Main.info(tr("Adding {0} to tag checker", file));400 addMapCSS(new BufferedReader(new InputStreamReader(new FileInputStream(i), Utils.UTF_8)));397 Main.info(tr("Adding {0} to tag checker", i)); 398 addMapCSS(new BufferedReader(new InputStreamReader(new MirroredInputStream(i), Utils.UTF_8))); 401 399 } catch (Exception ex) { 402 Main.warn(new RuntimeException(tr("Failed to add {0} to tag checker", file), ex));400 Main.warn(new RuntimeException(tr("Failed to add {0} to tag checker", i), ex)); 403 401 } 404 402 }
Note:
See TracChangeset
for help on using the changeset viewer.