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

Last change on this file since 31756 was 31677, checked in by donvip, 9 years ago

[joms_plugins] use apache-commons plugin

  • Property svn:mime-type set to text/xml
File size: 5.2 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="opendata" default="dist" basedir=".">
3 <property name="plugin.main.version" value="8919"/>
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.canloadatruntime" value="true"/>
9 <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpenData"/>
10 <property name="plugin.requires" value="apache-commons;jts;geotools;utilsplugin2"/>
11
12 <!-- ** include targets that all plugins have in common ** -->
13 <import file="../build-common.xml"/>
14
15 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
16 <include name="apache-commons.jar"/>
17 <include name="jts.jar"/>
18 <include name="geotools.jar"/>
19 <include name="opendata.jar"/>
20 </fileset>
21
22 <property name="apache-commons" location="${plugin.dist.dir}/apache-commons.jar"/>
23 <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
24 <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
25
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 embedded 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, xjc_neptune">
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_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="${apache-commons}"/>
88 <pathelement location="${jts}"/>
89 <pathelement location="${geotools}"/>
90 </classpath>
91 <compilerarg value="-Xlint:deprecation"/>
92 <compilerarg value="-Xlint:unchecked"/>
93 </javac>
94 </target>
95
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>
106 </target>
107</project>
Note: See TracBrowser for help on using the repository browser.