1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <project name="opendata" default="dist" basedir=".">
|
---|
3 | <property name="plugin.main.version" value="14153"/>
|
---|
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="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."/>
|
---|
7 | <property name="plugin.icon" value="images/dialogs/o24.png"/>
|
---|
8 | <property name="plugin.canloadatruntime" value="true"/>
|
---|
9 | <property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpenData"/>
|
---|
10 | <property name="plugin.requires" value="apache-commons;jts;ejml;geotools;utilsplugin2"/>
|
---|
11 |
|
---|
12 | <!-- ** include targets that all plugins have in common ** -->
|
---|
13 | <import file="../build-common.xml"/>
|
---|
14 |
|
---|
15 | <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
|
---|
16 | <include name="apache-commons.jar"/>
|
---|
17 | <include name="jts.jar"/>
|
---|
18 | <include name="ejml.jar"/>
|
---|
19 | <include name="geotools.jar"/>
|
---|
20 | <include name="opendata.jar"/>
|
---|
21 | </fileset>
|
---|
22 |
|
---|
23 | <property name="apache-commons" location="${plugin.dist.dir}/apache-commons.jar"/>
|
---|
24 | <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
|
---|
25 | <property name="ejml" location="${plugin.dist.dir}/ejml.jar"/>
|
---|
26 | <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
|
---|
27 |
|
---|
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 | -->
|
---|
42 | <target name="compile_jopendoc" depends="init">
|
---|
43 | <echo message="compiling JOpenDocument ... "/>
|
---|
44 | <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
|
---|
45 | <classpath>
|
---|
46 | <!-- JDOM is required in an older version than the one embedded in geotools jar -->
|
---|
47 | <pathelement location="lib/jdom-1.1.3.jar"/>
|
---|
48 | <pathelement location="${apache-commons}"/>
|
---|
49 | </classpath>
|
---|
50 | </javac>
|
---|
51 | </target>
|
---|
52 | <!--
|
---|
53 | **********************************************************
|
---|
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 | **********************************************************
|
---|
63 | ** compile_neptune - compiles Neptune classes
|
---|
64 | **********************************************************
|
---|
65 | -->
|
---|
66 | <target name="compile_neptune" depends="init, xjc_neptune">
|
---|
67 | <echo message="compiling Neptune ... "/>
|
---|
68 | <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
|
---|
69 | <classpath>
|
---|
70 | <fileset refid="jaxb.jars"/>
|
---|
71 | </classpath>
|
---|
72 | </javac>
|
---|
73 | </target>
|
---|
74 | <!--
|
---|
75 | **********************************************************
|
---|
76 | ** compile - compiles the source tree
|
---|
77 | **********************************************************
|
---|
78 | -->
|
---|
79 | <target name="compile" depends="init, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
|
---|
80 | <echo message="compiling sources for ${plugin.jar} ... "/>
|
---|
81 | <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
|
---|
82 | <classpath>
|
---|
83 | <pathelement path="${plugin.build.dir}"/>
|
---|
84 | <pathelement location="${josm}"/>
|
---|
85 | <pathelement location="${apache-commons}"/>
|
---|
86 | <pathelement location="${jts}"/>
|
---|
87 | <pathelement location="${ejml}"/>
|
---|
88 | <pathelement location="${geotools}"/>
|
---|
89 | <fileset refid="jaxb.jars"/>
|
---|
90 | </classpath>
|
---|
91 | <compilerarg value="-Xlint:deprecation"/>
|
---|
92 | <compilerarg value="-Xlint:unchecked"/>
|
---|
93 | </javac>
|
---|
94 | </target>
|
---|
95 |
|
---|
96 | <target name="xjc_neptune" depends="init, -jaxb_linux, -jaxb_windows" unless="jaxb.notRequired">
|
---|
97 | <exec executable="${xjc}" failonerror="true">
|
---|
98 | <arg value="-d"/>
|
---|
99 | <arg value="includes"/>
|
---|
100 | <arg value="-p"/>
|
---|
101 | <arg value="neptune"/>
|
---|
102 | <arg value="-encoding"/>
|
---|
103 | <arg value="UTF-8"/>
|
---|
104 | <arg value="resources/neptune/neptune.xsd"/>
|
---|
105 | </exec>
|
---|
106 | </target>
|
---|
107 | </project>
|
---|