mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-12 18:52:21 -05:00
16a4b4c5a6
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@79 3d1905a2-6b24-0410-a738-b14d5a86fcbd
70 lines
2.3 KiB
XML
70 lines
2.3 KiB
XML
<project name="DavMail" default="dist" basedir=".">
|
|
<property name="version" value="1.1.0"/>
|
|
|
|
<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"/>
|
|
<exclude name="jsmoothgen-ant.jar"/>
|
|
</fileset>
|
|
</copy>
|
|
<copy file="davmail.sh" todir="dist"/>
|
|
<taskdef name="jsmoothgen"
|
|
classname="net.charabia.jsmoothgen.ant.JSmoothGen"
|
|
classpathref="classpath"/>
|
|
<jsmoothgen project="davmail.jsmooth" skeletonroot="src/jsmooth/skeletons"/>
|
|
<jsmoothgen project="davmailconsole.jsmooth" skeletonroot="src/jsmooth/skeletons"/>
|
|
<zip file="dist/davmail-${version}.zip">
|
|
<fileset dir="dist">
|
|
<include name="lib/*.jar"/>
|
|
<include name="*.jar"/>
|
|
<include name="davmail.sh"/>
|
|
<!-- exclude swt jars from platform independent package -->
|
|
<exclude name="lib/swt*.jar"/>
|
|
</fileset>
|
|
</zip>
|
|
<nsis script="davmail-setup.nsi" verbosity="4" out="build.log" noconfig="yes">
|
|
<define name="VERSION" value="${version}"/>
|
|
</nsis>
|
|
</target>
|
|
|
|
</project>
|