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

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

Make geotools compile with Java 11 or later

File size: 3.9 KB
RevLine 
[26174]1<?xml version="1.0" encoding="utf-8"?>
[35374]2<project name="josm-plugins" default="dist" basedir="." xmlns:if="ant:if" xmlns:unless="ant:unless">
[20283]3 <target name="compile_josm" unless="skip-josm">
[26174]4 <ant dir="../core" target="dist"/>
[12780]5 </target>
[30551]6 <target name="compile_josm_test" unless="skip-josm">
7 <ant dir="../core" target="test-compile"/>
8 </target>
[35374]9 <!-- For Java specific stuff by version -->
[36151]10 <condition property="isJava21"><matches string="${ant.java.version}" pattern="2[1-9]|[3-9][0-9]" /></condition>
[36052]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>
[35374]13 <!-- Specific plugins -->
[36153]14 <property name="java21_plugins" value="FIT/build.xml" />
[36093]15 <property name="java17_plugins" value="maproulette/build.xml
[36100]16 imageio/build.xml
[36112]17 pmtiles/build.xml
[36100]18 todo/build.xml"/>
[36177]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" />
[36047]24 <property name="ordered_plugins" value="jackson/build.xml
25 jaxb/build.xml
[34461]26 jna/build.xml
[32310]27 jts/build.xml
28 ejml/build.xml
29 utilsplugin2/build.xml
30 log4j/build.xml
31 apache-commons/build.xml
[33189]32 apache-http/build.xml
[35946]33 Mapillary/build.xml
34 austriaaddresshelper/build.xml"/>
[35374]35 <property name="javafx_plugins" value="javafx/build.xml
[35946]36 MicrosoftStreetside/build.xml"/>
[32310]37 <macrodef name="iterate">
38 <attribute name="target"/>
39 <sequential>
[32327]40 <subant target="@{target}" inheritall="true">
[32310]41 <filelist dir="." files="${ordered_plugins}"/>
[35374]42 <!-- Build JavaFX plugins only with Java 11+ -->
43 <filelist dir="." files="${javafx_plugins}" if:set="isJava11"/>
[36177]44 <filelist dir="." files="${java11_plugins}" if:set="isJava11"/>
[36151]45 <filelist dir="." files="${java17_plugins}" if:set="isJava17"/>
46 <filelist dir="." files="${java21_plugins}" if:set="isJava21"/>
[36177]47 <fileset dir="." includes="*/build.xml" excludes="00_*/build.xml *.wip/build.xml ${javafx_plugins} ${ordered_plugins} ${java11_plugins} ${java17_plugins} ${java21_plugins} "/>
[32310]48 </subant>
49 </sequential>
50 </macrodef>
51 <target name="clean">
52 <iterate target="clean"/>
53 </target>
[34267]54 <target name="compile">
55 <iterate target="compile"/>
56 </target>
[32310]57 <target name="dist" depends="compile_josm">
[12780]58 <mkdir dir="../dist"/>
[32310]59 <iterate target="dist"/>
[32311]60 <property name="skip-dist" value="true"/>
[32334]61 <property name="skip-compile" value="true"/>
62 <property name="skip-revision" value="true"/>
[32310]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>
[33592]73 <target name="spotbugs">
74 <iterate target="spotbugs"/>
[32310]75 </target>
[34038]76 <target name="javadoc">
77 <iterate target="javadoc"/>
78 </target>
[3779]79</project>
Note: See TracBrowser for help on using the repository browser.