-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
71 lines (57 loc) · 2.22 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
<!-- $Id: build.xml,v 1.5 2004/05/26 15:19:54 pajp Exp $ -->
<project default="all">
<property name="src" location="."/>
<property name="build" location="build"/>
<property name="javadoc" location="javadocs"/>
<property name="manifests" location="manifests"/>
<property name="test2.build" location="${build}/test2"/>
<property name="lattekom.build" location="${build}/lattekom"/>
<property name="swingkom.build" location="${build}/swingkom"/>
<target name="init">
<tstamp/>
<mkdir dir="${javadoc}"/>
<mkdir dir="${test2.build}"/>
<mkdir dir="${lattekom.build}"/>
<mkdir dir="${swingkom.build}"/>
</target>
<target name="lattekom.compile" depends="init">
<javac destdir="${lattekom.build}" srcdir="${src}" deprecation="on"
includes="nu/dll/lyskom/**" encoding="utf-8" />
</target>
<target name="clean">
<delete dir="${build}"/>
<delete file="lattekom.jar"/>
</target>
<target name="lattekom.jar" depends="lattekom.compile">
<jar destfile="lattekom.jar" basedir="${lattekom.build}"/>
</target>
<target name="lattekom-unittest" depends="lattekom.jar">
<junit printsummary="withOutAndErr" fork="yes" haltonerror="on">
<!-- sysproperty key="lattekom.debug" value="true"/ -->
<formatter type="plain"/>
<classpath>
<pathelement path="${lattekom.build}"/>
</classpath>
<test name="nu.dll.lyskom.test.LatteTest">
<formatter type="xml"/>
</test>
</junit>
</target>
<target name="all" depends="clean,lattekom.jar,swingkom.jar"/>
<target name="javadoc">
<javadoc sourcepath="${src}" destdir="${javadoc}"
packagenames="nu.dll.lyskom"/>
</target>
<target name="swingkom.compile" depends="init">
<javac destdir="${swingkom.build}" srcdir="${src}"
includes="nu/dll/app/swingkom/*" classpath="lattekom.jar"/>
</target>
<target name="test2.compile" depends="init">
<javac destdir="${test2.build}" srcdir="${src}"
includes="nu/dll/app/test/*" classpath="lattekom.jar:readline.jar"/>
</target>
<target name="swingkom.jar" depends="swingkom.compile">
<jar destfile="swingkom.jar" basedir="${swingkom.build}"
manifest="${manifests}/swing-manifest"/>
</target>
</project>