[30310] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
[28000] | 2 | <project name="opendata" default="dist" basedir=".">
|
---|
[31937] | 3 | <property name="plugin.main.version" value="9309"/>
|
---|
[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_collections - compiles Apache Collections needed classes
|
---|
| 40 | **********************************************************
|
---|
| 41 | -->
|
---|
| 42 | <target name="compile_collections" depends="init">
|
---|
| 43 | <echo message="compiling Apache Collections ... "/>
|
---|
| 44 | <javac srcdir="includes/org/apache/commons/collections" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
|
---|
| 45 | </target>
|
---|
| 46 | <!--
|
---|
| 47 | **********************************************************
|
---|
| 48 | ** compile_jopendoc - compiles JOpenDocument needed classes
|
---|
| 49 | **********************************************************
|
---|
| 50 | -->
|
---|
| 51 | <target name="compile_jopendoc" depends="init, compile_collections">
|
---|
| 52 | <echo message="compiling JOpenDocument ... "/>
|
---|
[29014] | 53 | <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
|
---|
[30563] | 54 | <classpath>
|
---|
| 55 | <!-- JDOM is required and embedded in geotools jar -->
|
---|
| 56 | <pathelement location="${geotools}"/>
|
---|
| 57 | </classpath>
|
---|
[28000] | 58 | </javac>
|
---|
| 59 | </target>
|
---|
| 60 | <!--
|
---|
| 61 | **********************************************************
|
---|
[29679] | 62 | ** compile_j7zip - compiles J7zip classes
|
---|
| 63 | **********************************************************
|
---|
| 64 | -->
|
---|
| 65 | <target name="compile_j7zip" depends="init">
|
---|
| 66 | <echo message="compiling J7Zip ... "/>
|
---|
| 67 | <javac srcdir="includes/org/j7zip" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
|
---|
| 68 | </target>
|
---|
| 69 | <!--
|
---|
| 70 | **********************************************************
|
---|
[28246] | 71 | ** compile_neptune - compiles Neptune classes
|
---|
[28021] | 72 | **********************************************************
|
---|
| 73 | -->
|
---|
[30699] | 74 | <target name="compile_neptune" depends="init, xjc_neptune">
|
---|
[28021] | 75 | <echo message="compiling Neptune ... "/>
|
---|
| 76 | <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
|
---|
| 77 | </target>
|
---|
| 78 | <!--
|
---|
| 79 | **********************************************************
|
---|
[28000] | 80 | ** compile - compiles the source tree
|
---|
| 81 | **********************************************************
|
---|
| 82 | -->
|
---|
[31677] | 83 | <target name="compile" depends="init, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
|
---|
[30563] | 84 | <echo message="compiling sources for ${plugin.jar} ... "/>
|
---|
[29694] | 85 | <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
|
---|
[28000] | 86 | <classpath>
|
---|
[30563] | 87 | <pathelement path="${plugin.build.dir}"/>
|
---|
[28000] | 88 | <pathelement location="${josm}"/>
|
---|
[31677] | 89 | <pathelement location="${apache-commons}"/>
|
---|
[28246] | 90 | <pathelement location="${jts}"/>
|
---|
[31766] | 91 | <pathelement location="${ejml}"/>
|
---|
[29014] | 92 | <pathelement location="${geotools}"/>
|
---|
[28000] | 93 | </classpath>
|
---|
| 94 | <compilerarg value="-Xlint:deprecation"/>
|
---|
| 95 | <compilerarg value="-Xlint:unchecked"/>
|
---|
| 96 | </javac>
|
---|
| 97 | </target>
|
---|
[28018] | 98 |
|
---|
[30699] | 99 | <target name="xjc_neptune" depends="init, -jaxb_win, -jaxb_nix" unless="jaxb.notRequired">
|
---|
| 100 | <exec executable="${xjc}" failonerror="true">
|
---|
| 101 | <arg value="-d"/>
|
---|
| 102 | <arg value="includes"/>
|
---|
| 103 | <arg value="-p"/>
|
---|
| 104 | <arg value="neptune"/>
|
---|
| 105 | <arg value="-encoding"/>
|
---|
| 106 | <arg value="UTF-8"/>
|
---|
| 107 | <arg value="resources/neptune/neptune.xsd"/>
|
---|
| 108 | </exec>
|
---|
[28018] | 109 | </target>
|
---|
[28891] | 110 | </project>
|
---|