source: josm/trunk/test/unit/build.xml@ 1737

Last change on this file since 1737 was 1707, checked in by Gubaer, 15 years ago

test cases and test libraries (JUnit 4.6 and FEST)

File size: 2.2 KB
Line 
1<project name="josm-unit-tests" default="run" basedir=".">
2
3 <property name="josm.home" value="c:\data\projekte\osm\tag-editor-plugin" />
4
5 <!-- Java classpath addition (all jar files to compile tests with this) -->
6 <path id="project.classpath">
7 <fileset dir="../../lib">
8 <include name="**/*.jar"/>
9 </fileset>
10 <fileset dir="../../dist">
11 <include name="**/*.jar"/>
12 </fileset>
13 <fileset dir="../lib/fest">
14 <include name="**/*.jar"/>
15 </fileset>
16 <fileset dir="../lib/junit">
17 <include name="junit-4.6.jar" />
18 </fileset>
19 </path>
20
21 <target name="init">
22 <mkdir dir="../build" />
23 <mkdir dir="../dist" />
24 </target>
25
26 <target name="clean">
27 <delete dir="../build" />
28 <delete dir="../dist" />
29 </target>
30
31 <target name="dist" depends="compile">
32 <jar destfile="../dist/josm-unit-tests.jar" basedir="../build">
33 </jar>
34 </target>
35
36 <target name="compile" depends="init">
37 <javac srcdir="." classpathref="project.classpath" destdir="../build"
38 target="1.5" source="1.5" debug="on" encoding="UTF-8">
39 <compilerarg value="-Xlint:deprecation"/>
40 </javac>
41 </target>
42
43 <target name="run" depends="dist">
44 <junit fork="no">
45 <sysproperty key="josm.home" value="${josm.home}"/>
46 <classpath>
47 <fileset dir="../../lib">
48 <include name="**/*.jar"/>
49 </fileset>
50 <fileset dir="../../dist">
51 <include name="**/*.jar"/>
52 </fileset>
53 <fileset dir="../lib/fest">
54 <include name="**/*.jar"/>
55 </fileset>
56 <fileset dir="../lib/junit">
57 <include name="junit-4.6.jar" />
58 </fileset>
59 <fileset dir="../dist">
60 <include name="josm-unit-tests.jar" />
61 </fileset>
62 </classpath>
63 <formatter type="plain"/>
64
65 <test todir="../report" name="org.openstreetmap.josm.gui.conflict.nodes.NodeListMergeModelTest"/>
66 <test todir="../report" name="org.openstreetmap.josm.gui.conflict.relation.RelationMemberTableCellRendererTest"/>
67 <test todir="../report" name="org.openstreetmap.josm.gui.conflict.tags.TagMergeItemTest"/>
68 <test todir="../report" name="org.openstreetmap.josm.gui.conflict.tags.TagMergeModelTest"/>
69
70 </junit>
71 </target>
72
73
74</project>
Note: See TracBrowser for help on using the repository browser.