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

Last change on this file since 36181 was 36177, checked in by taylor.smock, 15 months ago

Make geotools compile with Java 11 or later

File size: 3.9 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="josm-plugins" default="dist" basedir="." xmlns:if="ant:if" xmlns:unless="ant:unless">
3 <target name="compile_josm" unless="skip-josm">
4 <ant dir="../core" target="dist"/>
5 </target>
6 <target name="compile_josm_test" unless="skip-josm">
7 <ant dir="../core" target="test-compile"/>
8 </target>
9 <!-- For Java specific stuff by version -->
10 <condition property="isJava21"><matches string="${ant.java.version}" pattern="2[1-9]|[3-9][0-9]" /></condition>
11 <condition property="isJava17"><matches string="${ant.java.version}" pattern="1[7-9]|[2-9][0-9]" /></condition>
12 <condition property="isJava11"><matches string="${ant.java.version}" pattern="1[1-9]|[2-9][0-9]" /></condition>
13 <!-- Specific plugins -->
14 <property name="java21_plugins" value="FIT/build.xml" />
15 <property name="java17_plugins" value="maproulette/build.xml
16 imageio/build.xml
17 pmtiles/build.xml
18 todo/build.xml"/>
19 <property name="java11_plugins" value="geotools/build.xml
20 cadastre-fr/build.xml
21 opendata/build.xml
22 ImportImagePlugin/build.xml
23 OsmInspectorPlugin/build.xml" />
24 <property name="ordered_plugins" value="jackson/build.xml
25 jaxb/build.xml
26 jna/build.xml
27 jts/build.xml
28 ejml/build.xml
29 utilsplugin2/build.xml
30 log4j/build.xml
31 apache-commons/build.xml
32 apache-http/build.xml
33 Mapillary/build.xml
34 austriaaddresshelper/build.xml"/>
35 <property name="javafx_plugins" value="javafx/build.xml
36 MicrosoftStreetside/build.xml"/>
37 <macrodef name="iterate">
38 <attribute name="target"/>
39 <sequential>
40 <subant target="@{target}" inheritall="true">
41 <filelist dir="." files="${ordered_plugins}"/>
42 <!-- Build JavaFX plugins only with Java 11+ -->
43 <filelist dir="." files="${javafx_plugins}" if:set="isJava11"/>
44 <filelist dir="." files="${java11_plugins}" if:set="isJava11"/>
45 <filelist dir="." files="${java17_plugins}" if:set="isJava17"/>
46 <filelist dir="." files="${java21_plugins}" if:set="isJava21"/>
47 <fileset dir="." includes="*/build.xml" excludes="00_*/build.xml *.wip/build.xml ${javafx_plugins} ${ordered_plugins} ${java11_plugins} ${java17_plugins} ${java21_plugins} "/>
48 </subant>
49 </sequential>
50 </macrodef>
51 <target name="clean">
52 <iterate target="clean"/>
53 </target>
54 <target name="compile">
55 <iterate target="compile"/>
56 </target>
57 <target name="dist" depends="compile_josm">
58 <mkdir dir="../dist"/>
59 <iterate target="dist"/>
60 <property name="skip-dist" value="true"/>
61 <property name="skip-compile" value="true"/>
62 <property name="skip-revision" value="true"/>
63 </target>
64 <target name="install" depends="dist">
65 <iterate target="install"/>
66 </target>
67 <target name="test" depends="compile_josm_test">
68 <iterate target="test"/>
69 </target>
70 <target name="checkstyle">
71 <iterate target="checkstyle"/>
72 </target>
73 <target name="spotbugs">
74 <iterate target="spotbugs"/>
75 </target>
76 <target name="javadoc">
77 <iterate target="javadoc"/>
78 </target>
79</project>
Note: See TracBrowser for help on using the repository browser.