[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 -->
|
---|
[36052] | 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>
|
---|
[35374] | 12 | <!-- Specific plugins -->
|
---|
[36053] | 13 | <property name="java17_plugins" value="maproulette/build.xml"/>
|
---|
[36047] | 14 | <property name="ordered_plugins" value="jackson/build.xml
|
---|
| 15 | jaxb/build.xml
|
---|
[34461] | 16 | jna/build.xml
|
---|
[32310] | 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
|
---|
[33189] | 24 | apache-http/build.xml
|
---|
[35946] | 25 | Mapillary/build.xml
|
---|
| 26 | austriaaddresshelper/build.xml"/>
|
---|
[35374] | 27 | <property name="javafx_plugins" value="javafx/build.xml
|
---|
[35946] | 28 | MicrosoftStreetside/build.xml"/>
|
---|
[32310] | 29 | <macrodef name="iterate">
|
---|
| 30 | <attribute name="target"/>
|
---|
| 31 | <sequential>
|
---|
[32327] | 32 | <subant target="@{target}" inheritall="true">
|
---|
[32310] | 33 | <filelist dir="." files="${ordered_plugins}"/>
|
---|
[35374] | 34 | <!-- Build JavaFX plugins only with Java 11+ -->
|
---|
| 35 | <filelist dir="." files="${javafx_plugins}" if:set="isJava11"/>
|
---|
[36052] | 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}"/>
|
---|
[32310] | 38 | </subant>
|
---|
| 39 | </sequential>
|
---|
| 40 | </macrodef>
|
---|
| 41 | <target name="clean">
|
---|
| 42 | <iterate target="clean"/>
|
---|
| 43 | </target>
|
---|
[34267] | 44 | <target name="compile">
|
---|
| 45 | <iterate target="compile"/>
|
---|
| 46 | </target>
|
---|
[32310] | 47 | <target name="dist" depends="compile_josm">
|
---|
[12780] | 48 | <mkdir dir="../dist"/>
|
---|
[32310] | 49 | <iterate target="dist"/>
|
---|
[32311] | 50 | <property name="skip-dist" value="true"/>
|
---|
[32334] | 51 | <property name="skip-compile" value="true"/>
|
---|
| 52 | <property name="skip-revision" value="true"/>
|
---|
[32310] | 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>
|
---|
[33592] | 63 | <target name="spotbugs">
|
---|
| 64 | <iterate target="spotbugs"/>
|
---|
[32310] | 65 | </target>
|
---|
[34038] | 66 | <target name="javadoc">
|
---|
| 67 | <iterate target="javadoc"/>
|
---|
| 68 | </target>
|
---|
[3779] | 69 | </project>
|
---|