Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (57 sloc) 2.22 KB
<!-- $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>