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