Changeset 28021 in osm for applications/editors/josm/plugins
- Timestamp:
- 2012-03-09T13:57:20+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/build.xml
r28018 r28021 107 107 <!-- 108 108 ********************************************************** 109 ** compile_naptune - compiles Neptune classes 110 ********************************************************** 111 --> 112 <target name="compile_neptune" depends="init"> 113 <echo message="compiling Neptune ... "/> 114 <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" /> 115 </target> 116 <!-- 117 ********************************************************** 109 118 ** compile - compiles the source tree 110 119 ********************************************************** 111 120 --> 112 <target name="compile" depends="init, compile_lang3, compile_poi, compile_jopendoc, compile_geotools ">121 <target name="compile" depends="init, compile_lang3, compile_poi, compile_jopendoc, compile_geotools, compile_neptune"> 113 122 <echo message="compiling sources for ${plugin.jar} ... "/> 114 123 <javac srcdir="src/org/openstreetmap" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false"> -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/XmlImporter.java
r28018 r28021 16 16 package org.openstreetmap.josm.plugins.opendata.core.io; 17 17 18 import java.io.InputStream; 19 20 import javax.xml.bind.JAXBException; 21 22 import org.openstreetmap.josm.data.osm.DataSet; 23 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 24 import org.openstreetmap.josm.io.IllegalDataException; 25 18 26 public class XmlImporter extends AbstractImporter { 19 27 … … 21 29 super(XML_FILE_FILTER); 22 30 } 23 31 32 @Override 33 protected DataSet parseDataSet(InputStream in, ProgressMonitor instance) 34 throws IllegalDataException { 35 try { 36 // TODO: check it is a neptune file 37 return NeptuneReader.parseDataSet(in, handler, instance); 38 } catch (JAXBException e) { 39 throw new IllegalDataException(e); 40 } 41 } 24 42 }
Note:
See TracChangeset
for help on using the changeset viewer.