| 1 | <?xml version="1.0" encoding="utf-8"?>
|
|---|
| 2 | <project name="opendata" default="dist" basedir=".">
|
|---|
| 3 | <property name="plugin.main.version" value="5631"/>
|
|---|
| 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"/>
|
|---|
| 8 | <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpenData"/>
|
|---|
| 9 | <property name="plugin.requires" value="jts;geotools;utilsplugin2"/>
|
|---|
| 10 |
|
|---|
| 11 | <!-- ** include targets that all plugins have in common ** -->
|
|---|
| 12 | <import file="../build-common.xml"/>
|
|---|
| 13 |
|
|---|
| 14 | <property name="jts" location="../../dist/jts.jar"/>
|
|---|
| 15 | <property name="geotools" location="../../dist/geotools.jar"/>
|
|---|
| 16 |
|
|---|
| 17 | <!--
|
|---|
| 18 | **********************************************************
|
|---|
| 19 | ** compile_lang3 - compiles Apache Commons Lang 3 needed classes
|
|---|
| 20 | **********************************************************
|
|---|
| 21 | -->
|
|---|
| 22 | <target name="compile_lang3" depends="init">
|
|---|
| 23 | <echo message="compiling Apache Commons Lang 3 ... "/>
|
|---|
| 24 | <javac srcdir="includes/org/apache/commons/lang3" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
|
|---|
| 25 | </target>
|
|---|
| 26 | <!--
|
|---|
| 27 | **********************************************************
|
|---|
| 28 | ** compile_poi - compiles Apache POI needed classes
|
|---|
| 29 | **********************************************************
|
|---|
| 30 | -->
|
|---|
| 31 | <target name="compile_poi" depends="init">
|
|---|
| 32 | <echo message="compiling Apache POI ... "/>
|
|---|
| 33 | <javac srcdir="includes/org/apache/poi" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
|
|---|
| 34 | </target>
|
|---|
| 35 | <!--
|
|---|
| 36 | **********************************************************
|
|---|
| 37 | ** compile_collections - compiles Apache Collections needed classes
|
|---|
| 38 | **********************************************************
|
|---|
| 39 | -->
|
|---|
| 40 | <target name="compile_collections" depends="init">
|
|---|
| 41 | <echo message="compiling Apache Collections ... "/>
|
|---|
| 42 | <javac srcdir="includes/org/apache/commons/collections" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
|
|---|
| 43 | </target>
|
|---|
| 44 | <!--
|
|---|
| 45 | **********************************************************
|
|---|
| 46 | ** compile_jopendoc - compiles JOpenDocument needed classes
|
|---|
| 47 | **********************************************************
|
|---|
| 48 | -->
|
|---|
| 49 | <target name="compile_jopendoc" depends="init, compile_collections">
|
|---|
| 50 | <echo message="compiling JOpenDocument ... "/>
|
|---|
| 51 | <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
|
|---|
| 52 | <classpath>
|
|---|
| 53 | <!-- JDOM is required and embededd in geotools jar -->
|
|---|
| 54 | <pathelement location="${geotools}"/>
|
|---|
| 55 | </classpath>
|
|---|
| 56 | </javac>
|
|---|
| 57 | </target>
|
|---|
| 58 | <!--
|
|---|
| 59 | **********************************************************
|
|---|
| 60 | ** compile_neptune - compiles Neptune classes
|
|---|
| 61 | **********************************************************
|
|---|
| 62 | -->
|
|---|
| 63 | <target name="compile_neptune" depends="init">
|
|---|
| 64 | <echo message="compiling Neptune ... "/>
|
|---|
| 65 | <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
|
|---|
| 66 | </target>
|
|---|
| 67 | <!--
|
|---|
| 68 | **********************************************************
|
|---|
| 69 | ** compile - compiles the source tree
|
|---|
| 70 | **********************************************************
|
|---|
| 71 | -->
|
|---|
| 72 | <target name="compile" depends="init, compile_lang3, compile_poi, compile_jopendoc, compile_neptune">
|
|---|
| 73 | <echo message="compiling sources for ${plugin.jar} ... "/>
|
|---|
| 74 | <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false">
|
|---|
| 75 | <classpath>
|
|---|
| 76 | <pathelement path="${plugin.build.dir}"/>
|
|---|
| 77 | <pathelement location="${josm}"/>
|
|---|
| 78 | <pathelement location="${jts}"/>
|
|---|
| 79 | <pathelement location="${geotools}"/>
|
|---|
| 80 | </classpath>
|
|---|
| 81 | <compilerarg value="-Xlint:deprecation"/>
|
|---|
| 82 | <compilerarg value="-Xlint:unchecked"/>
|
|---|
| 83 | </javac>
|
|---|
| 84 | </target>
|
|---|
| 85 |
|
|---|
| 86 | <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
|
|---|
| 87 | <classpath>
|
|---|
| 88 | <fileset dir="lib/jaxb" includes="*.jar" />
|
|---|
| 89 | </classpath>
|
|---|
| 90 | </taskdef>
|
|---|
| 91 |
|
|---|
| 92 | <target name="xjc_neptune">
|
|---|
| 93 | <xjc schema="resources/neptune/neptune.xsd" destdir="includes" package="neptune" target="2.1" />
|
|---|
| 94 | </target>
|
|---|
| 95 | </project>
|
|---|