2006-12-12 19:05:24 -05:00
|
|
|
<project name="DavMail" default="dist" basedir=".">
|
2007-03-04 05:59:58 -05:00
|
|
|
<property name="version" value="1.0.1"/>
|
2006-12-12 19:05:24 -05:00
|
|
|
|
|
|
|
<path id="classpath">
|
|
|
|
<pathelement location="classes"/>
|
|
|
|
<fileset dir="lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="target"/>
|
|
|
|
<delete dir="dist"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<mkdir dir="target/classes"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
|
|
|
<mkdir dir="target/classes"/>
|
|
|
|
<javac srcdir="src/java" destdir="target/classes" target="1.5">
|
|
|
|
<classpath>
|
|
|
|
<path refid="classpath"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
<copy todir="target/classes">
|
|
|
|
<fileset dir="src/java">
|
|
|
|
<include name="**/*"/>
|
|
|
|
<exclude name="**/*.java"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="dist" depends="compile">
|
2007-02-23 08:24:21 -05:00
|
|
|
<taskdef name="nsis" classname="net.sf.nsisant.Task">
|
|
|
|
<classpath location="lib/nsisant-1.2.jar"/>
|
|
|
|
</taskdef>
|
2006-12-12 19:05:24 -05:00
|
|
|
<delete dir="dist"/>
|
|
|
|
<mkdir dir="dist"/>
|
|
|
|
<jar basedir="target/classes" destfile="dist/davmail.jar"/>
|
|
|
|
<copy todir="dist/lib">
|
|
|
|
<fileset dir="lib">
|
2007-02-23 06:55:02 -05:00
|
|
|
<include name="*.jar"/>
|
2007-02-23 08:24:21 -05:00
|
|
|
<exclude name="nsisant*.jar"/>
|
2006-12-12 19:05:24 -05:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<copy todir="dist">
|
|
|
|
<fileset dir="src/jsmooth">
|
|
|
|
<include name="*.exe"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2007-02-23 08:24:21 -05:00
|
|
|
<zip file="dist/davmail-${version}.zip">
|
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<include name="davmail*.exe"/>
|
|
|
|
</fileset>
|
|
|
|
</zip>
|
|
|
|
<nsis script="davmail-setup.nsi" verbosity="4" out="build.log" noconfig="yes">
|
|
|
|
<define name="VERSION" value="${version}"/>
|
|
|
|
</nsis>
|
2006-12-12 19:05:24 -05:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|