2006-12-12 19:05:24 -05:00
|
|
|
<project name="DavMail" default="dist" basedir=".">
|
2009-01-13 16:36:10 -05:00
|
|
|
<property name="version" value="2.1.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">
|
2008-12-24 10:13:18 -05:00
|
|
|
<condition property="is.windows">
|
|
|
|
<os family="windows"/>
|
|
|
|
</condition>
|
2006-12-12 19:05:24 -05:00
|
|
|
<mkdir dir="target/classes"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
|
|
|
<mkdir dir="target/classes"/>
|
2009-01-14 04:50:20 -05:00
|
|
|
<javac srcdir="src/java" destdir="target/classes" source="1.5" target="1.5" debug="on">
|
2006-12-12 19:05:24 -05:00
|
|
|
<classpath>
|
|
|
|
<path refid="classpath"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
<copy todir="target/classes">
|
|
|
|
<fileset dir="src/java">
|
|
|
|
<include name="**/*"/>
|
|
|
|
<exclude name="**/*.java"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2008-12-24 10:13:18 -05:00
|
|
|
<target name="dist-nsis" if="is.windows">
|
2007-02-23 08:24:21 -05:00
|
|
|
<taskdef name="nsis" classname="net.sf.nsisant.Task">
|
|
|
|
<classpath location="lib/nsisant-1.2.jar"/>
|
|
|
|
</taskdef>
|
2008-12-24 10:13:18 -05:00
|
|
|
<nsis script="davmail-setup.nsi" verbosity="4" out="build.log" noconfig="yes">
|
|
|
|
<define name="VERSION" value="${version}"/>
|
|
|
|
</nsis>
|
|
|
|
</target>
|
|
|
|
|
2009-01-14 04:50:20 -05:00
|
|
|
<target name="dist-deb">
|
|
|
|
<taskdef resource="ant_deb_task.properties">
|
|
|
|
<classpath location="lib/ant-deb-0.0.1.jar"/>
|
|
|
|
</taskdef>
|
|
|
|
<desktopentry
|
|
|
|
toFile="dist/davmail.desktop"
|
|
|
|
name="DavMail"
|
|
|
|
comment="DavMail POP/SMTP/Caldav/LDAP Exchange Gateway"
|
|
|
|
exec="davmail"
|
|
|
|
icon="/usr/share/davmail/davmail.png"
|
|
|
|
categories="Office;Email;Network;Calendar;ContactManagement"
|
|
|
|
/>
|
|
|
|
<deb todir="dist"
|
|
|
|
package="davmail"
|
|
|
|
section="mail"
|
|
|
|
depends="sun-java6-jre,libswt-gtk-3.4-java">
|
|
|
|
<version upstream="${version}"/>
|
|
|
|
<maintainer email="mguessan@free.fr" name="Mickaël Guessant"/>
|
|
|
|
<description synopsis="DavMail POP/SMTP/Caldav/LDAP Exchange Gateway">
|
|
|
|
Ever wanted to get rid of Outlook ? DavMail is a POP/SMTP/Caldav/LDAP exchange gateway allowing
|
|
|
|
users to use any mail/calendar client (e.g. Thunderbird with Lightning) with an Exchange server,
|
|
|
|
even from the internet or behind a firewall through Outlook Web Access. DavMail now includes an
|
|
|
|
LDAP gateway to Exchange global address book to allow recipient address completion in mail compoze
|
|
|
|
window and full calendar support with attendees free/busy display.
|
|
|
|
DavMail gateway is implemented in java and should run on any platform. Releases are tested on Windows
|
|
|
|
and Linux (Ubuntu). MacOS support is currently limited to server (headless) mode.
|
|
|
|
Tested successfully with the Iphone (gateway running on a server).
|
|
|
|
|
|
|
|
http://davmail.sourceforge.net
|
|
|
|
</description>
|
|
|
|
<tarfileset dir="dist" prefix="usr/share/davmail">
|
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<!-- exclude swt jars from debian package -->
|
|
|
|
<exclude name="lib/swt*.jar"/>
|
|
|
|
</tarfileset>
|
|
|
|
<tarfileset dir="src/bin" prefix="usr/bin" filemode="755">
|
|
|
|
<include name="davmail"/>
|
|
|
|
</tarfileset>
|
|
|
|
<tarfileset dir="dist" prefix="usr/share/davmail">
|
|
|
|
<include name="davmail.png"/>
|
|
|
|
</tarfileset>
|
|
|
|
<tarfileset dir="dist" prefix="usr/share/applications">
|
|
|
|
<include name="davmail.desktop"/>
|
|
|
|
</tarfileset>
|
|
|
|
</deb>
|
|
|
|
</target>
|
|
|
|
|
2008-12-24 10:13:18 -05:00
|
|
|
<target name="dist" depends="compile">
|
2006-12-12 19:05:24 -05:00
|
|
|
<delete dir="dist"/>
|
|
|
|
<mkdir dir="dist"/>
|
2008-11-06 17:32:55 -05:00
|
|
|
<echo file="dist/version.txt" message="${version}"/>
|
2008-10-19 17:00:22 -04:00
|
|
|
<jar basedir="target/classes" destfile="dist/davmail.jar">
|
|
|
|
<manifest>
|
|
|
|
<section name="davmail/">
|
|
|
|
<attribute name="Implementation-Title" value="DavMail Gateway"/>
|
|
|
|
<attribute name="Implementation-Version" value="${version}"/>
|
|
|
|
<attribute name="Implementation-Vendor" value="Mickael Guessant"/>
|
|
|
|
</section>
|
|
|
|
</manifest>
|
2008-11-04 08:55:25 -05:00
|
|
|
</jar>
|
2006-12-12 19:05:24 -05:00
|
|
|
<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"/>
|
2007-05-10 19:15:37 -04:00
|
|
|
<exclude name="jsmoothgen-ant.jar"/>
|
2008-08-21 18:02:21 -04:00
|
|
|
<exclude name="servlet-api.jar"/>
|
2009-01-14 04:50:20 -05:00
|
|
|
<exclude name="ant-deb-*.jar"/>
|
2006-12-12 19:05:24 -05:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
2009-01-14 04:50:20 -05:00
|
|
|
<copy file="src/java/tray48.png" tofile="dist/davmail.png"/>
|
2007-08-13 04:46:46 -04:00
|
|
|
<copy file="davmail.sh" todir="dist"/>
|
2007-05-10 19:15:37 -04:00
|
|
|
<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"/>
|
2007-02-23 08:24:21 -05:00
|
|
|
<zip file="dist/davmail-${version}.zip">
|
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
<include name="*.jar"/>
|
2007-10-23 18:52:33 -04:00
|
|
|
<include name="davmail.desktop"/>
|
2007-08-13 04:46:46 -04:00
|
|
|
<include name="davmail.sh"/>
|
2007-10-09 05:48:59 -04:00
|
|
|
<!-- exclude swt jars from platform independent package -->
|
|
|
|
<exclude name="lib/swt*.jar"/>
|
2007-02-23 08:24:21 -05:00
|
|
|
</fileset>
|
|
|
|
</zip>
|
2008-08-21 18:02:21 -04:00
|
|
|
<copy todir="dist/web">
|
|
|
|
<fileset dir="src/web"/>
|
|
|
|
</copy>
|
|
|
|
<copy todir="dist/web/WEB-INF/lib">
|
2008-11-06 17:52:27 -05:00
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
2008-08-21 18:02:21 -04:00
|
|
|
<fileset dir="dist/lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<exclude name="nsisant*.jar"/>
|
2008-11-04 08:55:25 -05:00
|
|
|
<exclude name="jsmoothgen-ant*.jar"/>
|
|
|
|
<exclude name="swt*.jar"/>
|
2008-08-21 18:02:21 -04:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<jar destfile="dist/davmail-${version}.war">
|
|
|
|
<fileset dir="dist/web"/>
|
|
|
|
</jar>
|
2007-10-23 09:14:39 -04:00
|
|
|
<tar tarfile="dist/davmail-linux-x86-${version}.tgz" compression="gzip">
|
|
|
|
<tarfileset prefix="davmail-linux-x86-${version}" dir="dist" filemode="755">
|
|
|
|
<include name="davmail.sh"/>
|
|
|
|
</tarfileset>
|
|
|
|
<tarfileset prefix="davmail-linux-x86-${version}" dir="dist">
|
2007-10-23 18:52:33 -04:00
|
|
|
<include name="davmail.desktop"/>
|
2007-10-23 09:14:39 -04:00
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<include name="lib/swt-*-gtk-linux-x86.jar"/>
|
2008-11-04 08:55:25 -05:00
|
|
|
<exclude name="lib/swt-*-gtk-linux-x86_64.jar"/>
|
|
|
|
<exclude name="lib/swt-*-carbon-macosx.jar"/>
|
|
|
|
<exclude name="lib/swt-*-win32-x86.jar"/>
|
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
|
|
|
<tar tarfile="dist/davmail-linux-x86_64-${version}.tgz" compression="gzip">
|
|
|
|
<tarfileset prefix="davmail-linux-x86_64-${version}" dir="dist" filemode="755">
|
|
|
|
<include name="davmail.sh"/>
|
|
|
|
</tarfileset>
|
|
|
|
<tarfileset prefix="davmail-linux-x86_64-${version}" dir="dist">
|
|
|
|
<include name="davmail.desktop"/>
|
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<include name="lib/swt-*-gtk-linux-x86_64.jar"/>
|
|
|
|
<exclude name="lib/swt-*-gtk-linux-x86.jar"/>
|
2007-10-23 09:14:39 -04:00
|
|
|
<exclude name="lib/swt-*-carbon-macosx.jar"/>
|
|
|
|
<exclude name="lib/swt-*-win32-x86.jar"/>
|
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
2008-12-24 10:13:18 -05:00
|
|
|
<antcall target="dist-nsis"/>
|
2009-01-14 04:50:20 -05:00
|
|
|
<antcall target="dist-deb"/>
|
2008-11-04 08:55:25 -05:00
|
|
|
<!-- source package -->
|
2008-11-04 08:59:04 -05:00
|
|
|
<tar tarfile="dist/davmail-src-${version}.tgz" compression="gzip" longfile="gnu">
|
2008-11-04 08:55:25 -05:00
|
|
|
<tarfileset prefix="davmail-src-${version}" dir=".">
|
|
|
|
<include name="**/*"/>
|
2008-11-04 09:03:46 -05:00
|
|
|
<exclude name="build.log"/>
|
|
|
|
<exclude name="dist/**"/>
|
|
|
|
<exclude name="target/**"/>
|
2008-12-03 10:07:52 -05:00
|
|
|
<exclude name="archive/**"/>
|
2008-11-04 08:55:25 -05:00
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
2006-12-12 19:05:24 -05:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|