[30310] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
[28000] | 2 | <project name="opendata" default="dist" basedir=".">
|
---|
[33617] | 3 | <property name="plugin.main.version" value="12870"/>
|
---|
[29014] | 4 | <property name="plugin.author" value="Don-vip"/>
|
---|
| 5 | <property name="plugin.class" value="org.openstreetmap.josm.plugins.opendata.OdPlugin"/>
|
---|
| 6 | <property name="plugin.description" value="Convert data from Open Data portals to OSM layer"/>
|
---|
| 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"/>
|
---|
[31766] | 10 | <property name="plugin.requires" value="apache-commons;jts;ejml;geotools;utilsplugin2"/>
|
---|
[30748] | 11 |
|
---|
| 12 | <!-- ** include targets that all plugins have in common ** -->
|
---|
| 13 | <import file="../build-common.xml"/>
|
---|
| 14 |
|
---|
[30564] | 15 | <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
|
---|
[31677] | 16 | <include name="apache-commons.jar"/>
|
---|
[30563] | 17 | <include name="jts.jar"/>
|
---|
[31766] | 18 | <include name="ejml.jar"/>
|
---|
[30563] | 19 | <include name="geotools.jar"/>
|
---|
| 20 | <include name="opendata.jar"/>
|
---|
| 21 | </fileset>
|
---|
[29014] | 22 |
|
---|
[31677] | 23 | <property name="apache-commons" location="${plugin.dist.dir}/apache-commons.jar"/>
|
---|
[29917] | 24 | <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
|
---|
[31766] | 25 | <property name="ejml" location="${plugin.dist.dir}/ejml.jar"/>
|
---|
[29917] | 26 | <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
|
---|
[30563] | 27 |
|
---|
[28000] | 28 | <!--
|
---|
| 29 | **********************************************************
|
---|
| 30 | ** compile_poi - compiles Apache POI needed classes
|
---|
| 31 | **********************************************************
|
---|
| 32 | -->
|
---|
| 33 | <target name="compile_poi" depends="init">
|
---|
| 34 | <echo message="compiling Apache POI ... "/>
|
---|
| 35 | <javac srcdir="includes/org/apache/poi" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
|
---|
| 36 | </target>
|
---|
| 37 | <!--
|
---|
| 38 | **********************************************************
|
---|
| 39 | ** compile_jopendoc - compiles JOpenDocument needed classes
|
---|
| 40 | **********************************************************
|
---|
| 41 | -->
|
---|
[31943] | 42 | <target name="compile_jopendoc" depends="init">
|
---|
[28000] | 43 | <echo message="compiling JOpenDocument ... "/>
|
---|
[29014] | 44 | <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
|
---|
[30563] | 45 | <classpath>
|
---|
| 46 | <!-- JDOM is required and embedded in geotools jar -->
|
---|
| 47 | <pathelement location="${geotools}"/>
|
---|
[31943] | 48 | <pathelement location="${apache-commons}"/>
|
---|
[30563] | 49 | </classpath>
|
---|
[28000] | 50 | </javac>
|
---|
| 51 | </target>
|
---|
| 52 | <!--
|
---|
| 53 | **********************************************************
|
---|
[29679] | 54 | ** compile_j7zip - compiles J7zip classes
|
---|
| 55 | **********************************************************
|
---|
| 56 | -->
|
---|
| 57 | <target name="compile_j7zip" depends="init">
|
---|
| 58 | <echo message="compiling J7Zip ... "/>
|
---|
| 59 | <javac srcdir="includes/org/j7zip" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
|
---|
| 60 | </target>
|
---|
| 61 | <!--
|
---|
| 62 | **********************************************************
|
---|
[28246] | 63 | ** compile_neptune - compiles Neptune classes
|
---|
[28021] | 64 | **********************************************************
|
---|
| 65 | -->
|
---|
[30699] | 66 | <target name="compile_neptune" depends="init, xjc_neptune">
|
---|
[28021] | 67 | <echo message="compiling Neptune ... "/>
|
---|
| 68 | <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
|
---|
| 69 | </target>
|
---|
| 70 | <!--
|
---|
| 71 | **********************************************************
|
---|
[28000] | 72 | ** compile - compiles the source tree
|
---|
| 73 | **********************************************************
|
---|
| 74 | -->
|
---|
[31677] | 75 | <target name="compile" depends="init, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
|
---|
[30563] | 76 | <echo message="compiling sources for ${plugin.jar} ... "/>
|
---|
[29694] | 77 | <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
|
---|
[28000] | 78 | <classpath>
|
---|
[30563] | 79 | <pathelement path="${plugin.build.dir}"/>
|
---|
[28000] | 80 | <pathelement location="${josm}"/>
|
---|
[31677] | 81 | <pathelement location="${apache-commons}"/>
|
---|
[28246] | 82 | <pathelement location="${jts}"/>
|
---|
[31766] | 83 | <pathelement location="${ejml}"/>
|
---|
[29014] | 84 | <pathelement location="${geotools}"/>
|
---|
[28000] | 85 | </classpath>
|
---|
| 86 | <compilerarg value="-Xlint:deprecation"/>
|
---|
| 87 | <compilerarg value="-Xlint:unchecked"/>
|
---|
| 88 | </javac>
|
---|
| 89 | </target>
|
---|
[28018] | 90 |
|
---|
[32900] | 91 | <target name="xjc_neptune" depends="init, -jaxb_before9, -jaxb_after9" unless="jaxb.notRequired">
|
---|
[30699] | 92 | <exec executable="${xjc}" failonerror="true">
|
---|
| 93 | <arg value="-d"/>
|
---|
| 94 | <arg value="includes"/>
|
---|
| 95 | <arg value="-p"/>
|
---|
| 96 | <arg value="neptune"/>
|
---|
| 97 | <arg value="-encoding"/>
|
---|
| 98 | <arg value="UTF-8"/>
|
---|
| 99 | <arg value="resources/neptune/neptune.xsd"/>
|
---|
| 100 | </exec>
|
---|
[28018] | 101 | </target>
|
---|
[28891] | 102 | </project>
|
---|