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

Last change on this file since 31766 was 31766, checked in by donvip, 4 years ago

[josm_opendata] include ejml in classpath

  • Property svn:mime-type set to text/xml
File size: 5.3 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;ejml;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="ejml.jar"/>
19        <include name="geotools.jar"/>
20        <include name="opendata.jar"/>
21    </fileset>
22
23    <property name="apache-commons" location="${plugin.dist.dir}/apache-commons.jar"/>
24    <property name="jts" location="${plugin.dist.dir}/jts.jar"/>
25    <property name="ejml" location="${plugin.dist.dir}/ejml.jar"/>
26    <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
27   
28    <!--
29    **********************************************************
30    ** compile_poi - compiles Apache POI needed classes
31    **********************************************************
32    -->
33    <target name="compile_poi" depends="init">
34        <echo message="compiling Apache POI ... "/>
35        <javac srcdir="includes/org/apache/poi" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
36    </target>
37    <!--
38    **********************************************************
39    ** compile_collections - compiles Apache Collections needed classes
40    **********************************************************
41    -->
42    <target name="compile_collections" depends="init">
43        <echo message="compiling Apache Collections ... "/>
44        <javac srcdir="includes/org/apache/commons/collections" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
45    </target>
46    <!--
47    **********************************************************
48    ** compile_jopendoc - compiles JOpenDocument needed classes
49    **********************************************************
50    -->
51    <target name="compile_jopendoc" depends="init, compile_collections">
52        <echo message="compiling JOpenDocument ... "/>
53        <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
54            <classpath>
55                <!-- JDOM is required and embedded in geotools jar -->
56                <pathelement location="${geotools}"/>
57            </classpath>
58        </javac>
59    </target>
60    <!--
61    **********************************************************
62    ** compile_j7zip - compiles J7zip classes
63    **********************************************************
64    -->
65    <target name="compile_j7zip" depends="init">
66        <echo message="compiling J7Zip ... "/>
67        <javac srcdir="includes/org/j7zip" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
68    </target>
69    <!--
70    **********************************************************
71    ** compile_neptune - compiles Neptune classes
72    **********************************************************
73    -->
74    <target name="compile_neptune" depends="init, xjc_neptune">
75        <echo message="compiling Neptune ... "/>
76        <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
77    </target>
78    <!--
79    **********************************************************
80    ** compile - compiles the source tree
81    **********************************************************
82    -->
83    <target name="compile" depends="init, compile_poi, compile_jopendoc, compile_neptune, compile_j7zip">
84        <echo message="compiling sources for ${plugin.jar} ... "/>
85        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
86            <classpath>
87                <pathelement path="${plugin.build.dir}"/>
88                <pathelement location="${josm}"/>
89                <pathelement location="${apache-commons}"/>
90                <pathelement location="${jts}"/>
91                <pathelement location="${ejml}"/>
92                <pathelement location="${geotools}"/>
93            </classpath>
94            <compilerarg value="-Xlint:deprecation"/>
95            <compilerarg value="-Xlint:unchecked"/>
96        </javac>
97    </target>
98   
99    <target name="xjc_neptune" depends="init, -jaxb_win, -jaxb_nix" unless="jaxb.notRequired">
100        <exec executable="${xjc}" failonerror="true">
101            <arg value="-d"/>
102            <arg value="includes"/>
103            <arg value="-p"/>
104            <arg value="neptune"/>
105            <arg value="-encoding"/>
106            <arg value="UTF-8"/>
107            <arg value="resources/neptune/neptune.xsd"/>
108        </exec>
109    </target>
110</project>
Note: See TracBrowser for help on using the repository browser.