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

Last change on this file since 29989 was 29917, checked in by donvip, 11 years ago

[josm_plugins] fix build.xml of opendata and cadastre_fr

  • Property svn:mime-type set to text/xml
File size: 5.1 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="opendata" default="dist" basedir=".">
3 <property name="plugin.main.version" value="6162"/>
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="${plugin.dist.dir}/jts.jar"/>
15 <property name="geotools" location="${plugin.dist.dir}/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_j7zip - compiles J7zip classes
61 **********************************************************
62 -->
63 <target name="compile_j7zip" depends="init">
64 <echo message="compiling J7Zip ... "/>
65 <javac srcdir="includes/org/j7zip" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
66 </target>
67 <!--
68 **********************************************************
69 ** compile_neptune - compiles Neptune classes
70 **********************************************************
71 -->
72 <target name="compile_neptune" depends="init">
73 <echo message="compiling Neptune ... "/>
74 <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
75 </target>
76 <!--
77 **********************************************************
78 ** compile - compiles the source tree
79 **********************************************************
80 -->
81 <target name="compile" depends="init, compile_lang3, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
82 <echo message="compiling sources for ${plugin.jar} ... "/>
83 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
84 <classpath>
85 <pathelement path="${plugin.build.dir}"/>
86 <pathelement location="${josm}"/>
87 <pathelement location="${jts}"/>
88 <pathelement location="${geotools}"/>
89 </classpath>
90 <compilerarg value="-Xlint:deprecation"/>
91 <compilerarg value="-Xlint:unchecked"/>
92 </javac>
93 </target>
94
95 <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
96 <classpath>
97 <fileset dir="lib/jaxb" includes="*.jar" />
98 </classpath>
99 </taskdef>
100
101 <target name="xjc_neptune">
102 <xjc schema="resources/neptune/neptune.xsd" destdir="includes" package="neptune" target="2.1" />
103 </target>
104</project>
Note: See TracBrowser for help on using the repository browser.