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

Last change on this file since 36103 was 36100, checked in by taylor.smock, 3 years ago

Move gson back to plugins (required for sonar CI job) and mark TODO as a Java 17 plugin

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