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

Last change on this file since 30564 was 30564, checked in by donvip, 6 years ago

[josm_opendata] fix build.xml

  • Property svn:mime-type set to text/xml
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="opendata" default="dist" basedir=".">
3    <property name="plugin.main.version" value="7291"/>
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        <!-- plugin.dist.dir is usually defined in build-common.xml but we need to define plugin.requires.jars before including it -->
11        <property name="plugin.dist.dir" location="../../dist"/>
12    <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
13        <include name="jts.jar"/>
14        <include name="geotools.jar"/>
15        <include name="opendata.jar"/>
16    </fileset>
17
18    <!-- ** include targets that all plugins have in common ** -->
19    <import file="../build-common.xml"/>
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">
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    <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
103          <classpath>
104            <fileset dir="lib/jaxb" includes="*.jar" />
105          </classpath>
106    </taskdef>
107   
108    <target name="xjc_neptune">
109        <xjc schema="resources/neptune/neptune.xsd" destdir="includes" package="neptune" target="2.1" />
110    </target>
111</project>
Note: See TracBrowser for help on using the repository browser.