1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <project name="opendata" default="dist" basedir=".">
|
---|
3 | <property name="plugin.main.version" value="8323"/>
|
---|
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="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="jts.jar"/>
|
---|
17 | <include name="geotools.jar"/>
|
---|
18 | <include name="opendata.jar"/>
|
---|
19 | </fileset>
|
---|
20 |
|
---|
21 | <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
|
---|
22 | <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
|
---|
23 |
|
---|
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 ... "/>
|
---|
58 | <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
|
---|
59 | <classpath>
|
---|
60 | <!-- JDOM is required and embedded in geotools jar -->
|
---|
61 | <pathelement location="${geotools}"/>
|
---|
62 | </classpath>
|
---|
63 | </javac>
|
---|
64 | </target>
|
---|
65 | <!--
|
---|
66 | **********************************************************
|
---|
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 | **********************************************************
|
---|
76 | ** compile_neptune - compiles Neptune classes
|
---|
77 | **********************************************************
|
---|
78 | -->
|
---|
79 | <target name="compile_neptune" depends="init, xjc_neptune">
|
---|
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 | **********************************************************
|
---|
85 | ** compile - compiles the source tree
|
---|
86 | **********************************************************
|
---|
87 | -->
|
---|
88 | <target name="compile" depends="init, compile_lang3, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
|
---|
89 | <echo message="compiling sources for ${plugin.jar} ... "/>
|
---|
90 | <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
|
---|
91 | <classpath>
|
---|
92 | <pathelement path="${plugin.build.dir}"/>
|
---|
93 | <pathelement location="${josm}"/>
|
---|
94 | <pathelement location="${jts}"/>
|
---|
95 | <pathelement location="${geotools}"/>
|
---|
96 | </classpath>
|
---|
97 | <compilerarg value="-Xlint:deprecation"/>
|
---|
98 | <compilerarg value="-Xlint:unchecked"/>
|
---|
99 | </javac>
|
---|
100 | </target>
|
---|
101 |
|
---|
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>
|
---|
112 | </target>
|
---|
113 | </project>
|
---|