Ignore:
Timestamp:
2014-06-14T14:05:38+02:00 (10 years ago)
Author:
bastik
Message:

update to [josm7248]

Location:
applications/editors/josm/plugins/imagery-xml-bounds
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/build.xml

    r30416 r30495  
    44    <property name="commit.message" value="Commit message"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="7001"/>
     6    <property name="plugin.main.version" value="7248"/>
    77       
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/io/ValidatingImageryReader.java

    r30342 r30495  
    99import javax.xml.validation.SchemaFactory;
    1010
    11 import org.openstreetmap.josm.io.MirroredInputStream;
     11import org.openstreetmap.josm.io.CachedFile;
    1212import org.openstreetmap.josm.io.imagery.ImageryReader;
    1313import org.openstreetmap.josm.plugins.imageryxmlbounds.XmlBoundsConstants;
     
    3434        public static void validate(String source) throws SAXException, IOException {
    3535        SchemaFactory factory =  SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    36         Schema schema = factory.newSchema(new StreamSource(new MirroredInputStream(XML_SCHEMA)));
     36        Schema schema = factory.newSchema(new StreamSource(new CachedFile(XML_SCHEMA).getInputStream()));
    3737        schema.newValidator().validate(new StreamSource(source));
    3838        }
Note: See TracChangeset for help on using the changeset viewer.