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

Last change on this file since 30761 was 30748, checked in by donvip, 10 years ago

[josm_opendata] update build.xml

  • Property svn:mime-type set to text/xml
File size: 5.4 KB
RevLine 
[30310]1<?xml version="1.0" encoding="utf-8"?>
[28000]2<project name="opendata" default="dist" basedir=".">
[30573]3 <property name="plugin.main.version" value="7371"/>
[29014]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"/>
[29023]9 <property name="plugin.requires" value="jts;geotools;utilsplugin2"/>
[30748]10
11 <!-- ** include targets that all plugins have in common ** -->
12 <import file="../build-common.xml"/>
13
[30564]14 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
[30563]15 <include name="jts.jar"/>
16 <include name="geotools.jar"/>
17 <include name="opendata.jar"/>
18 </fileset>
[29014]19
[29917]20 <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
21 <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
[30563]22
[28000]23 <!--
24 **********************************************************
25 ** compile_lang3 - compiles Apache Commons Lang 3 needed classes
26 **********************************************************
27 -->
28 <target name="compile_lang3" depends="init">
29 <echo message="compiling Apache Commons Lang 3 ... "/>
30 <javac srcdir="includes/org/apache/commons/lang3" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
31 </target>
32 <!--
33 **********************************************************
34 ** compile_poi - compiles Apache POI needed classes
35 **********************************************************
36 -->
37 <target name="compile_poi" depends="init">
38 <echo message="compiling Apache POI ... "/>
39 <javac srcdir="includes/org/apache/poi" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
40 </target>
41 <!--
42 **********************************************************
43 ** compile_collections - compiles Apache Collections needed classes
44 **********************************************************
45 -->
46 <target name="compile_collections" depends="init">
47 <echo message="compiling Apache Collections ... "/>
48 <javac srcdir="includes/org/apache/commons/collections" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
49 </target>
50 <!--
51 **********************************************************
52 ** compile_jopendoc - compiles JOpenDocument needed classes
53 **********************************************************
54 -->
55 <target name="compile_jopendoc" depends="init, compile_collections">
56 <echo message="compiling JOpenDocument ... "/>
[29014]57 <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
[30563]58 <classpath>
59 <!-- JDOM is required and embedded in geotools jar -->
60 <pathelement location="${geotools}"/>
61 </classpath>
[28000]62 </javac>
63 </target>
64 <!--
65 **********************************************************
[29679]66 ** compile_j7zip - compiles J7zip classes
67 **********************************************************
68 -->
69 <target name="compile_j7zip" depends="init">
70 <echo message="compiling J7Zip ... "/>
71 <javac srcdir="includes/org/j7zip" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
72 </target>
73 <!--
74 **********************************************************
[28246]75 ** compile_neptune - compiles Neptune classes
[28021]76 **********************************************************
77 -->
[30699]78 <target name="compile_neptune" depends="init, xjc_neptune">
[28021]79 <echo message="compiling Neptune ... "/>
80 <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
81 </target>
82 <!--
83 **********************************************************
[28000]84 ** compile - compiles the source tree
85 **********************************************************
86 -->
[29679]87 <target name="compile" depends="init, compile_lang3, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
[30563]88 <echo message="compiling sources for ${plugin.jar} ... "/>
[29694]89 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
[28000]90 <classpath>
[30563]91 <pathelement path="${plugin.build.dir}"/>
[28000]92 <pathelement location="${josm}"/>
[28246]93 <pathelement location="${jts}"/>
[29014]94 <pathelement location="${geotools}"/>
[28000]95 </classpath>
96 <compilerarg value="-Xlint:deprecation"/>
97 <compilerarg value="-Xlint:unchecked"/>
98 </javac>
99 </target>
[28018]100
[30699]101 <target name="xjc_neptune" depends="init, -jaxb_win, -jaxb_nix" unless="jaxb.notRequired">
102 <exec executable="${xjc}" failonerror="true">
103 <arg value="-d"/>
104 <arg value="includes"/>
105 <arg value="-p"/>
106 <arg value="neptune"/>
107 <arg value="-encoding"/>
108 <arg value="UTF-8"/>
109 <arg value="resources/neptune/neptune.xsd"/>
110 </exec>
[28018]111 </target>
[28891]112</project>
Note: See TracBrowser for help on using the repository browser.