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

Last change on this file since 35682 was 35374, checked in by donvip, 4 years ago

build JavaFX plugins only with Java 11+, enable Jacoco coverage on Java 13/14/15

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