[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 -->
|
---|
| 10 | <condition property="isJava11"><matches string="${ant.java.version}" pattern="1[1-9]" /></condition>
|
---|
| 11 | <!-- Specific plugins -->
|
---|
[34461] | 12 | <property name="ordered_plugins" value="jaxb/build.xml
|
---|
| 13 | jna/build.xml
|
---|
[32310] | 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
|
---|
[33189] | 21 | apache-http/build.xml
|
---|
| 22 | austriaaddresshelper/build.xml"/>
|
---|
[35374] | 23 | <property name="javafx_plugins" value="javafx/build.xml
|
---|
| 24 | Mapillary/build.xml
|
---|
| 25 | MicrosoftStreetside/build.xml"/>
|
---|
[32310] | 26 | <macrodef name="iterate">
|
---|
| 27 | <attribute name="target"/>
|
---|
| 28 | <sequential>
|
---|
[32327] | 29 | <subant target="@{target}" inheritall="true">
|
---|
[32310] | 30 | <filelist dir="." files="${ordered_plugins}"/>
|
---|
[35374] | 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}"/>
|
---|
[32310] | 34 | </subant>
|
---|
| 35 | </sequential>
|
---|
| 36 | </macrodef>
|
---|
| 37 | <target name="clean">
|
---|
| 38 | <iterate target="clean"/>
|
---|
| 39 | </target>
|
---|
[34267] | 40 | <target name="compile">
|
---|
| 41 | <iterate target="compile"/>
|
---|
| 42 | </target>
|
---|
[32310] | 43 | <target name="dist" depends="compile_josm">
|
---|
[12780] | 44 | <mkdir dir="../dist"/>
|
---|
[32310] | 45 | <iterate target="dist"/>
|
---|
[32311] | 46 | <property name="skip-dist" value="true"/>
|
---|
[32334] | 47 | <property name="skip-compile" value="true"/>
|
---|
| 48 | <property name="skip-revision" value="true"/>
|
---|
[32310] | 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>
|
---|
[33592] | 59 | <target name="spotbugs">
|
---|
| 60 | <iterate target="spotbugs"/>
|
---|
[32310] | 61 | </target>
|
---|
[34038] | 62 | <target name="javadoc">
|
---|
| 63 | <iterate target="javadoc"/>
|
---|
| 64 | </target>
|
---|
[3779] | 65 | </project>
|
---|