summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-02-18 22:26:07 +0000
committerPaul Buetow <paul@buetow.org>2009-02-18 22:26:07 +0000
commit832b02ef0fbf477dbd73dcedfbfb5c9093b82c8c (patch)
tree0c3f19893282fca75b3f14f6fa428ba99cc0939b /build.xml
parent9d33ec10dba1bfea791aa6b117370728ec71afe8 (diff)
ant works
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml35
1 files changed, 28 insertions, 7 deletions
diff --git a/build.xml b/build.xml
index 0255c2e..feb7fed 100644
--- a/build.xml
+++ b/build.xml
@@ -4,6 +4,7 @@
<!-- 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" />
<target name="init">
@@ -24,36 +25,56 @@
<copy file="config.txt" tofile="${classes}/config.txt" />
</target>
- <target name="dist" depends="compile" description="generate the distribution" >
+ <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>
- <mkdir dir="${dist}/lib" />
- <jar jarfile="${dist}/lib/NetCalendar-${DSTAMP}.jar" basedir="${classes}" manifest="MANIFEST.MF" />
- <copy file="${dist}/lib/NetCalendar-${DSTAMP}.jar" tofile="${dist}/lib/NetCalendar-Latest.jar" />
+ <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="config.txt" tofile="${dist}/config.txt" />
+ <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}/lib/NetCalendar-Latest.jar" fork="true" />
+ <java jar="${dist}/NetCalendar.jar" fork="true" />
</target>
<target name="run" depends="compile">
<java dir="${classes}" classname="shared.Main" fork="true" />
</target>
- <target name="testdist" depends="dist,rundist" />
-
<target name="test" depends="compile">
<java dir="${classes}" classname="shared.Main" fork="true">
<!-- <arg value="-debug" /> -->