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

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

Add MapRoulette to svn:externals

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