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

Last change on this file since 36153 was 36153, checked in by taylor.smock, 12 months ago

Move fit to FIT to match expectations of the Nexus-JOSM-Plugins CI job

File size: 3.5 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="ordered_plugins" value="jackson/build.xml
20 jaxb/build.xml
21 jna/build.xml
22 jts/build.xml
23 ejml/build.xml
24 geotools/build.xml
25 utilsplugin2/build.xml
26 log4j/build.xml
27 apache-commons/build.xml
28 apache-http/build.xml
29 Mapillary/build.xml
30 austriaaddresshelper/build.xml"/>
31 <property name="javafx_plugins" value="javafx/build.xml
32 MicrosoftStreetside/build.xml"/>
33 <macrodef name="iterate">
34 <attribute name="target"/>
35 <sequential>
36 <subant target="@{target}" inheritall="true">
37 <filelist dir="." files="${ordered_plugins}"/>
38 <!-- Build JavaFX plugins only with Java 11+ -->
39 <filelist dir="." files="${javafx_plugins}" if:set="isJava11"/>
40 <filelist dir="." files="${java17_plugins}" if:set="isJava17"/>
41 <filelist dir="." files="${java21_plugins}" if:set="isJava21"/>
42 <fileset dir="." includes="*/build.xml" excludes="00_*/build.xml *.wip/build.xml ${javafx_plugins} ${ordered_plugins} ${java17_plugins}"/>
43 </subant>
44 </sequential>
45 </macrodef>
46 <target name="clean">
47 <iterate target="clean"/>
48 </target>
49 <target name="compile">
50 <iterate target="compile"/>
51 </target>
52 <target name="dist" depends="compile_josm">
53 <mkdir dir="../dist"/>
54 <iterate target="dist"/>
55 <property name="skip-dist" value="true"/>
56 <property name="skip-compile" value="true"/>
57 <property name="skip-revision" value="true"/>
58 </target>
59 <target name="install" depends="dist">
60 <iterate target="install"/>
61 </target>
62 <target name="test" depends="compile_josm_test">
63 <iterate target="test"/>
64 </target>
65 <target name="checkstyle">
66 <iterate target="checkstyle"/>
67 </target>
68 <target name="spotbugs">
69 <iterate target="spotbugs"/>
70 </target>
71 <target name="javadoc">
72 <iterate target="javadoc"/>
73 </target>
74</project>
Note: See TracBrowser for help on using the repository browser.