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

Last change on this file since 31097 was 31015, checked in by donvip, 11 years ago

[josm_opendata] enable load at runtime for real

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