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

Last change on this file since 36267 was 36232, checked in by taylor.smock, 10 months ago

MS Streetside is now Java 21, not Java 17

File size: 4.4 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 -->
[36232]14 <property name="java21_plugins" value="FIT/build.xml
15 MicrosoftStreetside/build.xml" />
[36093]16 <property name="java17_plugins" value="maproulette/build.xml
[36100]17 imageio/build.xml
[36112]18 pmtiles/build.xml
[36100]19 todo/build.xml"/>
[36177]20 <property name="java11_plugins" value="geotools/build.xml
21 cadastre-fr/build.xml
22 opendata/build.xml
23 ImportImagePlugin/build.xml
24 OsmInspectorPlugin/build.xml" />
[36047]25 <property name="ordered_plugins" value="jackson/build.xml
26 jaxb/build.xml
[34461]27 jna/build.xml
[32310]28 jts/build.xml
29 ejml/build.xml
30 utilsplugin2/build.xml
31 log4j/build.xml
32 apache-commons/build.xml
[33189]33 apache-http/build.xml
[35946]34 austriaaddresshelper/build.xml"/>
[36228]35 <property name="javafx_plugins" value="javafx/build.xml"/>
[36190]36
37 <!-- We are dropping Java 8 support in January 2024 - these have issues compiling with Java 8, but not with Java 11+ targeting Java 8 -->
38 <!-- Note: Mapillary was in ordered_plugins -->
39 <property name="borked_java8_compilation" value="Mapillary/build.xml
40 Dxf-Import/build.xml
41 photo_geotagging/build.xml" />
[32310]42 <macrodef name="iterate">
43 <attribute name="target"/>
44 <sequential>
[32327]45 <subant target="@{target}" inheritall="true">
[32310]46 <filelist dir="." files="${ordered_plugins}"/>
[36190]47 <filelist dir="." files="${borked_java8_compilation}" if:set="isJava11"/>
[35374]48 <!-- Build JavaFX plugins only with Java 11+ -->
49 <filelist dir="." files="${javafx_plugins}" if:set="isJava11"/>
[36177]50 <filelist dir="." files="${java11_plugins}" if:set="isJava11"/>
[36151]51 <filelist dir="." files="${java17_plugins}" if:set="isJava17"/>
52 <filelist dir="." files="${java21_plugins}" if:set="isJava21"/>
[36190]53 <fileset dir="." includes="*/build.xml" excludes="00_*/build.xml *.wip/build.xml ${borked_java8_compilation} ${javafx_plugins} ${ordered_plugins} ${java11_plugins} ${java17_plugins} ${java21_plugins} "/>
[32310]54 </subant>
55 </sequential>
56 </macrodef>
57 <target name="clean">
58 <iterate target="clean"/>
59 </target>
[34267]60 <target name="compile">
61 <iterate target="compile"/>
62 </target>
[32310]63 <target name="dist" depends="compile_josm">
[12780]64 <mkdir dir="../dist"/>
[32310]65 <iterate target="dist"/>
[32311]66 <property name="skip-dist" value="true"/>
[32334]67 <property name="skip-compile" value="true"/>
68 <property name="skip-revision" value="true"/>
[32310]69 </target>
70 <target name="install" depends="dist">
71 <iterate target="install"/>
72 </target>
73 <target name="test" depends="compile_josm_test">
74 <iterate target="test"/>
75 </target>
76 <target name="checkstyle">
77 <iterate target="checkstyle"/>
78 </target>
[33592]79 <target name="spotbugs">
80 <iterate target="spotbugs"/>
[32310]81 </target>
[34038]82 <target name="javadoc">
83 <iterate target="javadoc"/>
84 </target>
[3779]85</project>
Note: See TracBrowser for help on using the repository browser.