source: subversion/applications/editors/josm/plugins/opendata/build.xml @ 30748

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

[josm_opendata] update build.xml

  • Property svn:mime-type set to text/xml
File size: 5.4 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="opendata" default="dist" basedir=".">
3    <property name="plugin.main.version" value="7371"/>
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"/>
9    <property name="plugin.requires" value="jts;geotools;utilsplugin2"/>
10
11    <!-- ** include targets that all plugins have in common ** -->
12    <import file="../build-common.xml"/>
13   
14    <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
15        <include name="jts.jar"/>
16        <include name="geotools.jar"/>
17        <include name="opendata.jar"/>
18    </fileset>
19
20    <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
21    <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
22   
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 ... "/>
57        <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
58            <classpath>
59                <!-- JDOM is required and embedded in geotools jar -->
60                <pathelement location="${geotools}"/>
61            </classpath>
62        </javac>
63    </target>
64    <!--
65    **********************************************************
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    **********************************************************
75    ** compile_neptune - compiles Neptune classes
76    **********************************************************
77    -->
78    <target name="compile_neptune" depends="init, xjc_neptune">
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    **********************************************************
84    ** compile - compiles the source tree
85    **********************************************************
86    -->
87    <target name="compile" depends="init, compile_lang3, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
88        <echo message="compiling sources for ${plugin.jar} ... "/>
89        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
90            <classpath>
91                <pathelement path="${plugin.build.dir}"/>
92                <pathelement location="${josm}"/>
93                <pathelement location="${jts}"/>
94                <pathelement location="${geotools}"/>
95            </classpath>
96            <compilerarg value="-Xlint:deprecation"/>
97            <compilerarg value="-Xlint:unchecked"/>
98        </javac>
99    </target>
100   
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>
111    </target>
112</project>
Note: See TracBrowser for help on using the repository browser.