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

Last change on this file since 31695 was 31677, checked in by donvip, 10 years ago

[joms_plugins] use apache-commons plugin

  • Property svn:mime-type set to text/xml
File size: 5.2 KB
RevLine 
[30310]1<?xml version="1.0" encoding="utf-8"?>
[28000]2<project name="opendata" default="dist" basedir=".">
[31655]3 <property name="plugin.main.version" value="8919"/>
[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"/>
[31677]10 <property name="plugin.requires" value="apache-commons;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}">
[31677]16 <include name="apache-commons.jar"/>
[30563]17 <include name="jts.jar"/>
18 <include name="geotools.jar"/>
19 <include name="opendata.jar"/>
20 </fileset>
[29014]21
[31677]22 <property name="apache-commons" location="${plugin.dist.dir}/apache-commons.jar"/>
[29917]23 <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
24 <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
[30563]25
[28000]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 ... "/>
[29014]51 <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
[30563]52 <classpath>
53 <!-- JDOM is required and embedded in geotools jar -->
54 <pathelement location="${geotools}"/>
55 </classpath>
[28000]56 </javac>
57 </target>
58 <!--
59 **********************************************************
[29679]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 **********************************************************
[28246]69 ** compile_neptune - compiles Neptune classes
[28021]70 **********************************************************
71 -->
[30699]72 <target name="compile_neptune" depends="init, xjc_neptune">
[28021]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 **********************************************************
[28000]78 ** compile - compiles the source tree
79 **********************************************************
80 -->
[31677]81 <target name="compile" depends="init, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
[30563]82 <echo message="compiling sources for ${plugin.jar} ... "/>
[29694]83 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
[28000]84 <classpath>
[30563]85 <pathelement path="${plugin.build.dir}"/>
[28000]86 <pathelement location="${josm}"/>
[31677]87 <pathelement location="${apache-commons}"/>
[28246]88 <pathelement location="${jts}"/>
[29014]89 <pathelement location="${geotools}"/>
[28000]90 </classpath>
91 <compilerarg value="-Xlint:deprecation"/>
92 <compilerarg value="-Xlint:unchecked"/>
93 </javac>
94 </target>
[28018]95
[30699]96 <target name="xjc_neptune" depends="init, -jaxb_win, -jaxb_nix" unless="jaxb.notRequired">
97 <exec executable="${xjc}" failonerror="true">
98 <arg value="-d"/>
99 <arg value="includes"/>
100 <arg value="-p"/>
101 <arg value="neptune"/>
102 <arg value="-encoding"/>
103 <arg value="UTF-8"/>
104 <arg value="resources/neptune/neptune.xsd"/>
105 </exec>
[28018]106 </target>
[28891]107</project>
Note: See TracBrowser for help on using the repository browser.