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

Last change on this file since 33414 was 33358, checked in by donvip, 8 years ago

fix #josm11166 - Long ways should be split into shorter segments during shapefile import

  • Property svn:mime-type set to text/xml
File size: 4.9 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="opendata" default="dist" basedir=".">
3 <property name="plugin.main.version" value="12287"/>
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.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 and embedded in geotools jar -->
47 <pathelement location="${geotools}"/>
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 </target>
70 <!--
71 **********************************************************
72 ** compile - compiles the source tree
73 **********************************************************
74 -->
75 <target name="compile" depends="init, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
76 <echo message="compiling sources for ${plugin.jar} ... "/>
77 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
78 <classpath>
79 <pathelement path="${plugin.build.dir}"/>
80 <pathelement location="${josm}"/>
81 <pathelement location="${apache-commons}"/>
82 <pathelement location="${jts}"/>
83 <pathelement location="${ejml}"/>
84 <pathelement location="${geotools}"/>
85 </classpath>
86 <compilerarg value="-Xlint:deprecation"/>
87 <compilerarg value="-Xlint:unchecked"/>
88 </javac>
89 </target>
90
91 <target name="xjc_neptune" depends="init, -jaxb_before9, -jaxb_after9" unless="jaxb.notRequired">
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>
101 </target>
102</project>
Note: See TracBrowser for help on using the repository browser.