-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
executable file
·73 lines (62 loc) · 2.2 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="UTF-8" ?>
<project basedir="." default="coverage" name="winsys">
<property name="src.dir" value="src"/>
<property name="bin.dir" value="build/bin"/>
<property name="instbin.dir" value="build/inst-bin"/>
<property name="report.dir" value="build/report"/>
<property name="jemmy.lib" value="lib/jemmy.jar"/>
<property name="junit.lib" value="lib/junit.jar"/>
<property name="jcoverage.lib" value="c:/eclipse/plugins/com.jcoverage_1.0.5/jcoverage.jar"/>
<target name="build" depends="compile, jar"/>
<target name="compile">
<mkdir dir="${bin.dir}"/>
<javac destdir="${bin.dir}" srcdir="${src.dir}" debug="yes" deprecation="yes">
<classpath>
<pathelement location="${jemmy.lib}"/>
<pathelement location="${junit.lib}"/>
</classpath>
</javac>
<copy todir="${bin.dir}">
<fileset dir="${src.dir}">
<include name="**/*.png"/>
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<jar basedir="${bin.dir}" jarfile="layoutmgr.jar" manifest="manifest.mf" />
</target>
<target name="coverage" depends="compile">
<!-- instrument classes -->
<instrument todir="${instbin.dir}">
<fileset dir="${bin.dir}">
<include name="**/layout/*.class"/>
<include name="**/layout/impl/*.class"/>
<exclude name="**/RUI*.class"/>
</fileset>
</instrument>
<!-- run junit -->
<junit fork="yes" dir="${basedir}" printsummary="yes">
<classpath location="${instbin.dir}"/>
<classpath location="${bin.dir}"/>
<classpath location="${jemmy.lib}"/>
<classpath location="${jcoverage.lib}"/>
<test name="com.sun.winsys.test.AllTests"/>
<!--
<test name="com.sun.winsys.test.MCTests"/>
<test name="com.sun.winsys.test.MFTests"/>
<test name="com.sun.winsys.test.LMTests"/>
<test name="com.sun.winsys.test.DCTests"/>
<test name="com.sun.winsys.test.DWCTests"/>
<test name="com.sun.winsys.test.ACTests"/>
<test name="com.sun.winsys.test.AVTests"/>
<test name="com.sun.winsys.test.CCTests"/>
-->
</junit>
<!-- generate report -->
<report srcdir="${src.dir}" destdir="${report.dir}"/>
</target>
<target name="clean">
<delete dir="build"/>
<delete file="jcoverage.ser"/>
</target>
</project>