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

Last change on this file since 32306 was 32306, checked in by donvip, 8 years ago

rework/simplify plugins build.xml file - automatically run unit tests of all plugins, without having to maintain list manually

File size: 1.2 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="josm-plugins" default="dist" basedir=".">
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 <property name="ordered_plugins" value="jna/build.xml
10 jts/build.xml
11 gson/build.xml
12 ejml/build.xml
13 geotools/build.xml
14 utilsplugin2/build.xml
15 log4j/build.xml
16 apache-commons/build.xml
17 apache-http/build.xml"/>
18 <macrodef name="iterate">
19 <attribute name="target"/>
20 <sequential>
21 <subant target="@{target}">
22 <filelist dir="." files="${ordered_plugins}"/>
23 <fileset dir="." includes="*/build.xml" excludes="00_*/build.xml ${ordered_plugins}"/>
24 </subant>
25 </sequential>
26 </macrodef>
27 <target name="clean">
28 <iterate target="clean"/>
29 </target>
30 <target name="dist" depends="compile_josm">
31 <mkdir dir="../dist"/>
32 <iterate target="dist"/>
33 </target>
34 <target name="install" depends="dist">
35 <iterate target="install"/>
36 </target>
37 <target name="test" depends="compile_josm_test">
38 <iterate target="test"/>
39 </target>
40</project>
Note: See TracBrowser for help on using the repository browser.