mirror of
https://github.com/moparisthebest/davmail
synced 2024-11-15 13:55:09 -05:00
f75d326d3c
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@36 3d1905a2-6b24-0410-a738-b14d5a86fcbd
66 lines
1.9 KiB
XML
66 lines
1.9 KiB
XML
<project name="DavMail" default="dist" basedir=".">
|
|
<property name="version" value="1.0.1"/>
|
|
|
|
<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">
|
|
<taskdef name="nsis" classname="net.sf.nsisant.Task">
|
|
<classpath location="lib/nsisant-1.2.jar"/>
|
|
</taskdef>
|
|
<delete dir="dist"/>
|
|
<mkdir dir="dist"/>
|
|
<jar basedir="target/classes" destfile="dist/davmail.jar"/>
|
|
<copy todir="dist/lib">
|
|
<fileset dir="lib">
|
|
<include name="*.jar"/>
|
|
<exclude name="nsisant*.jar"/>
|
|
</fileset>
|
|
</copy>
|
|
<copy todir="dist">
|
|
<fileset dir="src/jsmooth">
|
|
<include name="*.exe"/>
|
|
</fileset>
|
|
</copy>
|
|
<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>
|
|
</target>
|
|
|
|
</project>
|