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

Last change on this file since 29023 was 29023, checked in by donvip, 12 years ago

[josm_opendata] Add jts to plugin requirements as an immediate workaround to #josm8246

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