forked from slagyr/limelight
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
91 lines (78 loc) · 3.6 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<project name="LimeLight" default="jar" basedir=".">
<description>
LimeLight
</description>
<property name="src" location="src"/>
<property name="classes" location="classes"/>
<property name="lib" location="lib"/>
<property name="ant.build.javac.target" value="1.5"/>
<path id="classpath">
<pathelement path="${classes}"/>
<fileset dir="${lib}">
<include name="*.jar"/>
<exclude name="limelight.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="${classes}"/>
</target>
<target name="build" depends="clean, compile" description="clean, then compile the source"/>
<target name="testbuild" depends="clean, unit_test"
description="Run this target any time you change code or acceptance tests. It will clean, then compile the source, run all the unit test and fintesse acceptance tests."/>
<target name="jar" depends="build" description="generate the jar file">
<delete file="${lib}/limelight.jar"/>
<jar jarfile="${lib}/limelight.jar" basedir="classes">
<include name="**/*"/>
<exclude name="**/*Test.class"/>
<manifest>
<attribute name="Built-By" value="Micah Martin"/>
</manifest>
</jar>
</target>
<target name="clean" description="delete everything in the classes directory">
<mkdir dir="${classes}"/>
<delete includeemptydirs="true">
<fileset dir="${classes}" includes="**/"/>
</delete>
</target>
<target name="compile" depends="init" description="compile the source (make)">
<javac srcdir="${src}" destdir="${classes}" classpathref="classpath" debug="off"/>
</target>
<target name="unit_test" depends="compile" description="run the unit tests">
<junit fork="yes" printsummary="on" haltonfailure="yes" haltonerror="yes">
<classpath refid="classpath"/>
<!--<formatter type="xml" usefile="false" />-->
<formatter type="brief" usefile="false"/>
<batchtest fork="no" todir="etc/test_reports">
<fileset dir="${src}">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="compile.cont" depends="clean, init" description="compile the source (make)">
<javac srcdir="${src}" destdir="${classes}" classpathref="classpath" debug="off" nowarn="true">
<exclude name="**/darwin/**/*.java"/>
</javac>
</target>
<target name="unit_test.cont" depends="compile.cont" description="run the unit tests">
<junit fork="yes" printsummary="on" haltonfailure="yes" haltonerror="yes">
<classpath refid="classpath"/>
<!--<formatter type="xml" usefile="false" />-->
<formatter type="brief" usefile="false"/>
<batchtest fork="no" todir="etc/test_reports">
<fileset dir="${src}">
<include name="**/*Test.java"/>
<exclude name="**/darwin/**/*.*"/>
<exclude name="**/KeyboardFocusManagerTest.java"/>
<exclude name="**/StageFrameTest.java"/>
<exclude name="**/FrameManagerTest.java"/>
<exclude name="**/TextPanelTest.java"/>
<exclude name="**/AlertFrameManagerTest.java"/>
<exclude name="**/InputPanelTest.java"/>
<exclude name="**/ScrollBarPanelTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
</project>