Changeset 7713 in josm


Ignore:
Timestamp:
2014-11-07T13:33:21+01:00 (10 years ago)
Author:
Don-vip
Message:

fix #10710 - No zipfile support for custom validator rules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r7599 r7713  
    574574        CheckParameterUtil.ensureParameterNotNull(url, "url");
    575575        CachedFile cache = new CachedFile(url);
    576         try (InputStream s = cache.getInputStream()) {
     576        InputStream zip = cache.findZipEntryInputStream("validator.mapcss", "");
     577        try (InputStream s = zip != null ? zip : cache.getInputStream()) {
    577578            List<TagCheck> tagchecks = TagCheck.readMapCSS(new BufferedReader(UTFInputStreamReader.create(s)));
    578579            checks.remove(url);
Note: See TracChangeset for help on using the changeset viewer.