[30310] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
[28000] | 2 | <project name="opendata" default="dist" basedir=".">
|
---|
[35513] | 3 | <property name="plugin.main.version" value="16799"/>
|
---|
[29014] | 4 | <property name="plugin.author" value="Don-vip"/>
|
---|
| 5 | <property name="plugin.class" value="org.openstreetmap.josm.plugins.opendata.OdPlugin"/>
|
---|
[34335] | 6 | <property name="plugin.description" value="Allows JOSM to read Open Data formats (csv, xls, ods, kml, kmz, shp, mif) into an .osm data layer. Supports zip and 7z compression of these file types."/>
|
---|
[29014] | 7 | <property name="plugin.icon" value="images/dialogs/o24.png"/>
|
---|
[31015] | 8 | <property name="plugin.canloadatruntime" value="true"/>
|
---|
[31923] | 9 | <property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpenData"/>
|
---|
[34698] | 10 | <property name="plugin.requires" value="apache-commons;jaxb;jts;ejml;geotools;utilsplugin2"/>
|
---|
[30748] | 11 |
|
---|
| 12 | <!-- ** include targets that all plugins have in common ** -->
|
---|
| 13 | <import file="../build-common.xml"/>
|
---|
[34116] | 14 |
|
---|
[30564] | 15 | <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
|
---|
[31677] | 16 | <include name="apache-commons.jar"/>
|
---|
[34698] | 17 | <include name="jaxb.jar"/>
|
---|
[30563] | 18 | <include name="jts.jar"/>
|
---|
[31766] | 19 | <include name="ejml.jar"/>
|
---|
[30563] | 20 | <include name="geotools.jar"/>
|
---|
| 21 | <include name="opendata.jar"/>
|
---|
| 22 | </fileset>
|
---|
[29014] | 23 |
|
---|
[31677] | 24 | <property name="apache-commons" location="${plugin.dist.dir}/apache-commons.jar"/>
|
---|
[29917] | 25 | <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
|
---|
[31766] | 26 | <property name="ejml" location="${plugin.dist.dir}/ejml.jar"/>
|
---|
[29917] | 27 | <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
|
---|
[30563] | 28 |
|
---|
[28000] | 29 | <!--
|
---|
| 30 | **********************************************************
|
---|
| 31 | ** compile_poi - compiles Apache POI needed classes
|
---|
| 32 | **********************************************************
|
---|
| 33 | -->
|
---|
| 34 | <target name="compile_poi" depends="init">
|
---|
| 35 | <echo message="compiling Apache POI ... "/>
|
---|
| 36 | <javac srcdir="includes/org/apache/poi" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
|
---|
| 37 | </target>
|
---|
| 38 | <!--
|
---|
| 39 | **********************************************************
|
---|
| 40 | ** compile_jopendoc - compiles JOpenDocument needed classes
|
---|
| 41 | **********************************************************
|
---|
| 42 | -->
|
---|
[31943] | 43 | <target name="compile_jopendoc" depends="init">
|
---|
[28000] | 44 | <echo message="compiling JOpenDocument ... "/>
|
---|
[29014] | 45 | <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
|
---|
[30563] | 46 | <classpath>
|
---|
[34132] | 47 | <!-- JDOM is required in an older version than the one embedded in geotools jar -->
|
---|
| 48 | <pathelement location="lib/jdom-1.1.3.jar"/>
|
---|
[31943] | 49 | <pathelement location="${apache-commons}"/>
|
---|
[30563] | 50 | </classpath>
|
---|
[28000] | 51 | </javac>
|
---|
| 52 | </target>
|
---|
| 53 | <!--
|
---|
| 54 | **********************************************************
|
---|
[29679] | 55 | ** compile_j7zip - compiles J7zip classes
|
---|
| 56 | **********************************************************
|
---|
| 57 | -->
|
---|
| 58 | <target name="compile_j7zip" depends="init">
|
---|
| 59 | <echo message="compiling J7Zip ... "/>
|
---|
| 60 | <javac srcdir="includes/org/j7zip" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
|
---|
| 61 | </target>
|
---|
| 62 | <!--
|
---|
| 63 | **********************************************************
|
---|
[28246] | 64 | ** compile_neptune - compiles Neptune classes
|
---|
[28021] | 65 | **********************************************************
|
---|
| 66 | -->
|
---|
[30699] | 67 | <target name="compile_neptune" depends="init, xjc_neptune">
|
---|
[28021] | 68 | <echo message="compiling Neptune ... "/>
|
---|
[34409] | 69 | <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
|
---|
| 70 | <classpath>
|
---|
| 71 | <fileset refid="jaxb.jars"/>
|
---|
| 72 | </classpath>
|
---|
| 73 | </javac>
|
---|
[28021] | 74 | </target>
|
---|
| 75 | <!--
|
---|
| 76 | **********************************************************
|
---|
[28000] | 77 | ** compile - compiles the source tree
|
---|
| 78 | **********************************************************
|
---|
| 79 | -->
|
---|
[35179] | 80 | <target name="pre-compile" depends="init, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip"/>
|
---|
[28018] | 81 |
|
---|
[34376] | 82 | <target name="xjc_neptune" depends="init, -jaxb_linux, -jaxb_windows" unless="jaxb.notRequired">
|
---|
[30699] | 83 | <exec executable="${xjc}" failonerror="true">
|
---|
| 84 | <arg value="-d"/>
|
---|
| 85 | <arg value="includes"/>
|
---|
| 86 | <arg value="-p"/>
|
---|
| 87 | <arg value="neptune"/>
|
---|
| 88 | <arg value="-encoding"/>
|
---|
| 89 | <arg value="UTF-8"/>
|
---|
| 90 | <arg value="resources/neptune/neptune.xsd"/>
|
---|
| 91 | </exec>
|
---|
[28018] | 92 | </target>
|
---|
[28891] | 93 | </project>
|
---|