[26174] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
[35374] | 2 | <project name="josm-plugins" default="dist" basedir="." xmlns:if="ant:if" xmlns:unless="ant:unless">
|
---|
[20283] | 3 | <target name="compile_josm" unless="skip-josm">
|
---|
[26174] | 4 | <ant dir="../core" target="dist"/>
|
---|
[12780] | 5 | </target>
|
---|
[30551] | 6 | <target name="compile_josm_test" unless="skip-josm">
|
---|
| 7 | <ant dir="../core" target="test-compile"/>
|
---|
| 8 | </target>
|
---|
[35374] | 9 | <!-- For Java specific stuff by version -->
|
---|
[36151] | 10 | <condition property="isJava21"><matches string="${ant.java.version}" pattern="2[1-9]|[3-9][0-9]" /></condition>
|
---|
[36052] | 11 | <condition property="isJava17"><matches string="${ant.java.version}" pattern="1[7-9]|[2-9][0-9]" /></condition>
|
---|
[35374] | 12 | <!-- Specific plugins -->
|
---|
[36232] | 13 | <property name="java21_plugins" value="FIT/build.xml
|
---|
| 14 | MicrosoftStreetside/build.xml" />
|
---|
[36315] | 15 | <property name="java17_plugins" value="javafx/build.xml
|
---|
| 16 | imageio/build.xml
|
---|
[36285] | 17 | Mapillary/build.xml
|
---|
[36286] | 18 | MapRoulette/build.xml
|
---|
[36112] | 19 | pmtiles/build.xml
|
---|
[36100] | 20 | todo/build.xml"/>
|
---|
[36047] | 21 | <property name="ordered_plugins" value="jackson/build.xml
|
---|
| 22 | jaxb/build.xml
|
---|
[34461] | 23 | jna/build.xml
|
---|
[32310] | 24 | jts/build.xml
|
---|
| 25 | ejml/build.xml
|
---|
| 26 | utilsplugin2/build.xml
|
---|
| 27 | log4j/build.xml
|
---|
| 28 | apache-commons/build.xml
|
---|
[33189] | 29 | apache-http/build.xml
|
---|
[36283] | 30 | geotools/build.xml
|
---|
[35946] | 31 | austriaaddresshelper/build.xml"/>
|
---|
[32310] | 32 | <macrodef name="iterate">
|
---|
| 33 | <attribute name="target"/>
|
---|
| 34 | <sequential>
|
---|
[32327] | 35 | <subant target="@{target}" inheritall="true">
|
---|
[32310] | 36 | <filelist dir="." files="${ordered_plugins}"/>
|
---|
[36151] | 37 | <filelist dir="." files="${java17_plugins}" if:set="isJava17"/>
|
---|
| 38 | <filelist dir="." files="${java21_plugins}" if:set="isJava21"/>
|
---|
[36308] | 39 | <fileset dir="." includes="*/build.xml" excludes="00_*/build.xml *.wip/build.xml ${ordered_plugins} ${java17_plugins} ${java21_plugins} "/>
|
---|
[32310] | 40 | </subant>
|
---|
| 41 | </sequential>
|
---|
| 42 | </macrodef>
|
---|
| 43 | <target name="clean">
|
---|
| 44 | <iterate target="clean"/>
|
---|
| 45 | </target>
|
---|
[34267] | 46 | <target name="compile">
|
---|
| 47 | <iterate target="compile"/>
|
---|
| 48 | </target>
|
---|
[32310] | 49 | <target name="dist" depends="compile_josm">
|
---|
[12780] | 50 | <mkdir dir="../dist"/>
|
---|
[32310] | 51 | <iterate target="dist"/>
|
---|
[32311] | 52 | <property name="skip-dist" value="true"/>
|
---|
[32334] | 53 | <property name="skip-compile" value="true"/>
|
---|
| 54 | <property name="skip-revision" value="true"/>
|
---|
[32310] | 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>
|
---|
[33592] | 65 | <target name="spotbugs">
|
---|
| 66 | <iterate target="spotbugs"/>
|
---|
[32310] | 67 | </target>
|
---|
[34038] | 68 | <target name="javadoc">
|
---|
| 69 | <iterate target="javadoc"/>
|
---|
| 70 | </target>
|
---|
[3779] | 71 | </project>
|
---|