blob: 7f8ddc4664f2c06598bfa1bd93ecfa6ffdb5017b (
plain)
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
92
93
94
95
96
|
<project name="NetCalendar" default="dist" basedir=".">
<description>This is the NetCalendar!</description>
<!-- set global properties for this build -->
<property name="sources" location="sources" />
<property name="dist" location="dist" />
<property name="jar" location="jar" />
<property name="classes" location="classes" />
<property name="jcalendar" location="libs/FLib/JCalendar/build/jcalendar.jar" />
<target name="init">
<tstamp />
<mkdir dir="${classes}" />
</target>
<target name="compile" depends="init" description="compile the source" >
<javac srcdir="${sources}" destdir="${classes}">
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="${jcalendar}"/>
</classpath>
<compilerarg value="-Xlint:deprecation" />
</javac>
<copy todir="${classes}/icons">
<fileset dir="icons" />
</copy>
<copy todir="${classes}/images">
<fileset dir="images" />
</copy>
<copy file="netcalendar.conf" tofile="${classes}/netcalendar.conf" />
<copy file="${jcalendar}" tofile="${classes}/jcalendar.jar" />
</target>
<target name="jar" depends="compile" description="generate the jar" >
<delete file="MANIFEST.MF" />
<manifest file="MANIFEST.MF">
<attribute name="Built-By" value="Dipl.-Inform. (FH) Paul C. Buetow" />
<attribute name="Main-Class" value="shared/Main" />
</manifest>
<mkdir dir="${jar}/lib" />
<jar jarfile="${jar}/lib/NetCalendar-${DSTAMP}.jar" basedir="${classes}" manifest="MANIFEST.MF" />
<copy file="${jar}/lib/NetCalendar-${DSTAMP}.jar" tofile="${jar}/lib/NetCalendar-Latest.jar" />
</target>
<target name="dist" depends="jar" description="generate the distribution" >
<mkdir dir="${dist}/" />
<copy file="${jar}/lib/NetCalendar-Latest.jar" tofile="${dist}/NetCalendar.jar" />
<copy todir="${dist}/icons">
<fileset dir="icons" />
</copy>
<copy todir="${dist}/images">
<fileset dir="images" />
</copy>
<copy todir="${dist}/SSL">
<fileset dir="SSL" />
</copy>
<copy todir="${dist}/calendardb">
<fileset dir="calendardb" />
</copy>
<copy file="netcalendar.conf" tofile="${dist}/netcalendar.conf" />
<copy file="CHANGELOG.txt" tofile="${dist}/CHANGELOG.txt" />
<copy file="README.txt" tofile="${dist}/README.txt" />
<copy file="LICENSE.txt" tofile="${dist}/LICENSE.txt" />
<copy file="TODO.txt" tofile="${dist}/TODO.txt" />
</target>
<target name="clean" description="clean up" >
<delete dir="${basedir}/javadoc/" />
<delete dir="${classes}" />
<delete dir="${dist}" />
<delete dir="${jar}" />
<delete file="MANIFEST.MF" />
</target>
<target name="rundist" depends="dist">
<java jar="${dist}/NetCalendar.jar" fork="true" />
</target>
<target name="run" depends="compile">
<java dir="${classes}" classname="shared.Main" fork="true" />
</target>
<target name="test" depends="compile">
<java dir="${classes}" classname="shared.Main" fork="true">
<!-- <arg value="-debug" /> -->
</java>
</target>
<target name="javadoc" description="Generate Javadocs">
<mkdir dir="${basedir}/javadoc/"/>
<javadoc destdir="${basedir}/javadoc/">
<fileset dir="${basedir}/" includes="**/*.java" />
</javadoc>
</target>
</project>
|