source: osm/applications/editors/josm/plugins/opendata/build.xml@ 34899

Last change on this file since 34899 was 34805, checked in by donvip, 5 years ago

update to JOSM 14347

  • Property svn:mime-type set to text/xml
File size: 5.2 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="opendata" default="dist" basedir=".">
3 <property name="plugin.main.version" value="14347"/>
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;jaxb;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="jaxb.jar"/>
18 <include name="jts.jar"/>
19 <include name="ejml.jar"/>
20 <include name="geotools.jar"/>
21 <include name="opendata.jar"/>
22 </fileset>
23
24 <property name="apache-commons" location="${plugin.dist.dir}/apache-commons.jar"/>
25 <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
26 <property name="ejml" location="${plugin.dist.dir}/ejml.jar"/>
27 <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
28
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 -->
43 <target name="compile_jopendoc" depends="init">
44 <echo message="compiling JOpenDocument ... "/>
45 <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
46 <classpath>
47 <!-- JDOM is required in an older version than the one embedded in geotools jar -->
48 <pathelement location="lib/jdom-1.1.3.jar"/>
49 <pathelement location="${apache-commons}"/>
50 </classpath>
51 </javac>
52 </target>
53 <!--
54 **********************************************************
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 **********************************************************
64 ** compile_neptune - compiles Neptune classes
65 **********************************************************
66 -->
67 <target name="compile_neptune" depends="init, xjc_neptune">
68 <echo message="compiling Neptune ... "/>
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>
74 </target>
75 <!--
76 **********************************************************
77 ** compile - compiles the source tree
78 **********************************************************
79 -->
80 <target name="compile" depends="init, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
81 <echo message="compiling sources for ${plugin.jar} ... "/>
82 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
83 <classpath>
84 <pathelement path="${plugin.build.dir}"/>
85 <pathelement location="${josm}"/>
86 <pathelement location="${apache-commons}"/>
87 <pathelement location="${jts}"/>
88 <pathelement location="${ejml}"/>
89 <pathelement location="${geotools}"/>
90 <fileset refid="jaxb.jars"/>
91 </classpath>
92 <compilerarg value="-Xlint:deprecation"/>
93 <compilerarg value="-Xlint:unchecked"/>
94 </javac>
95 </target>
96
97 <target name="xjc_neptune" depends="init, -jaxb_linux, -jaxb_windows" unless="jaxb.notRequired">
98 <exec executable="${xjc}" failonerror="true">
99 <arg value="-d"/>
100 <arg value="includes"/>
101 <arg value="-p"/>
102 <arg value="neptune"/>
103 <arg value="-encoding"/>
104 <arg value="UTF-8"/>
105 <arg value="resources/neptune/neptune.xsd"/>
106 </exec>
107 </target>
108</project>
Note: See TracBrowser for help on using the repository browser.