2006-12-12 19:05:24 -05:00
|
|
|
<project name="DavMail" default="dist" basedir=".">
|
2009-08-14 10:38:48 -04:00
|
|
|
<property name="version" value="3.4.0"/>
|
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"/>
|
2009-02-19 17:20:31 -05:00
|
|
|
<delete file="build.log"/>
|
2006-12-12 19:05:24 -05:00
|
|
|
</target>
|
|
|
|
|
2009-05-19 17:34:05 -04:00
|
|
|
<condition property="is.windows">
|
|
|
|
<os family="windows"/>
|
|
|
|
</condition>
|
|
|
|
<condition property="is.svn">
|
|
|
|
<available file=".svn"/>
|
|
|
|
</condition>
|
|
|
|
|
2009-06-07 18:11:26 -04:00
|
|
|
<condition property="is.java6">
|
|
|
|
<equals arg1="${ant.java.version}" arg2="1.6"/>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<target name="check-java6" unless="is.java6">
|
|
|
|
<fail message="Java 6 needed to build DavMail, current version is ${ant.java.version}, check JAVA_HOME"/>
|
|
|
|
</target>
|
|
|
|
|
2009-05-19 17:34:05 -04:00
|
|
|
<target name="svnrelease" if="is.svn">
|
|
|
|
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml">
|
|
|
|
<classpath>
|
|
|
|
<fileset dir="svnant">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</classpath>
|
|
|
|
</typedef>
|
|
|
|
<svn svnkit="true">
|
|
|
|
<wcversion path="."/>
|
|
|
|
</svn>
|
|
|
|
<property name="release" value="${version}-${revision.max}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="defaultrelease" unless="is.svn">
|
|
|
|
<property name="release" value="${version}"/>
|
|
|
|
</target>
|
|
|
|
|
2009-06-07 18:11:26 -04:00
|
|
|
<target name="init" depends="check-java6, svnrelease, defaultrelease">
|
2009-05-19 17:34:05 -04:00
|
|
|
<echo message="Creating DavMail ${release} dist package"/>
|
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">
|
2009-05-19 17:34:05 -04:00
|
|
|
<define name="VERSION" value="${release}"/>
|
2008-12-24 10:13:18 -05:00
|
|
|
</nsis>
|
|
|
|
</target>
|
|
|
|
|
2009-02-17 09:20:13 -05:00
|
|
|
<target name="dist-osx">
|
|
|
|
<taskdef name="jarbundler"
|
|
|
|
classname="net.sourceforge.jarbundler.JarBundler">
|
|
|
|
<classpath location="lib/jarbundler-2.1.0.jar"/>
|
|
|
|
</taskdef>
|
|
|
|
<jarbundler dir="dist"
|
|
|
|
shortname="DavMail"
|
|
|
|
name="DavMail"
|
|
|
|
mainclass="davmail.DavGateway"
|
2009-05-19 17:34:05 -04:00
|
|
|
build="${release}"
|
2009-02-17 09:20:13 -05:00
|
|
|
icon="src/osx/tray.icns"
|
2009-05-19 17:34:05 -04:00
|
|
|
infostring="DavMail Gateway ${release}"
|
2009-02-17 09:20:13 -05:00
|
|
|
jvmversion="1.5+"
|
2009-05-19 17:34:05 -04:00
|
|
|
version="${release}"
|
2009-02-17 09:20:13 -05:00
|
|
|
vmoptions="-Dsun.net.inetaddr.ttl=60 -Xmx512m"
|
2009-02-18 11:17:30 -05:00
|
|
|
workingdirectory="$APP_PACKAGE"
|
2009-05-10 18:22:32 -04:00
|
|
|
stubfile="src/osx/davmail">
|
2009-02-17 09:20:13 -05:00
|
|
|
<jarfileset dir="dist/lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<exclude name="swt*.jar"/>
|
|
|
|
</jarfileset>
|
|
|
|
<jarfileset dir="dist">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</jarfileset>
|
|
|
|
</jarbundler>
|
2009-05-19 17:34:05 -04:00
|
|
|
<zip file="dist/DavMail-MacOSX-${release}.app.zip">
|
2009-05-10 18:22:32 -04:00
|
|
|
<zipfileset dir="dist">
|
2009-02-18 11:17:30 -05:00
|
|
|
<include name="DavMail.app/**/*"/>
|
2009-05-10 18:22:32 -04:00
|
|
|
<exclude name="DavMail.app/Contents/MacOS/davmail"/>
|
|
|
|
</zipfileset>
|
|
|
|
<zipfileset dir="dist" filemode="755">
|
|
|
|
<include name="DavMail.app/Contents/MacOS/davmail"/>
|
|
|
|
</zipfileset>
|
2009-02-18 11:17:30 -05:00
|
|
|
</zip>
|
2009-02-19 17:29:53 -05:00
|
|
|
<delete dir="dist/DavMail.app"/>
|
2009-02-17 09:20:13 -05:00
|
|
|
</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
|
2009-02-17 09:20:13 -05:00
|
|
|
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"
|
|
|
|
/>
|
2009-01-14 04:50:20 -05:00
|
|
|
<deb todir="dist"
|
|
|
|
package="davmail"
|
|
|
|
section="mail"
|
|
|
|
depends="sun-java6-jre,libswt-gtk-3.4-java">
|
2009-05-19 17:34:05 -04:00
|
|
|
<version upstream="${release}"/>
|
2009-01-14 04:50:20 -05:00
|
|
|
<maintainer email="mguessan@free.fr" name="Mickaël Guessant"/>
|
2009-02-12 10:51:17 -05:00
|
|
|
<description synopsis="DavMail POP/IMAP/SMTP/Caldav/LDAP Exchange Gateway">
|
2009-02-17 09:20:13 -05:00
|
|
|
Ever wanted to get rid of Outlook ? DavMail is a POP/IMAP/SMTP/Caldav/LDAP exchange gateway allowing
|
|
|
|
users to use any mail/calendar client (e.g. Thunderbird with Lightning or Apple iCal) 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,
|
|
|
|
Linux (Ubuntu) and Mac OSX. Tray does not work on MacOS and is replaced with a full frame.
|
|
|
|
Tested successfully with the Iphone (gateway running on a server).
|
2009-02-12 10:51:17 -05:00
|
|
|
|
2009-01-14 04:50:20 -05:00
|
|
|
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"/>
|
2009-05-19 17:34:05 -04:00
|
|
|
<echo file="dist/version.txt" message="${release}"/>
|
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"/>
|
2009-05-19 17:34:05 -04:00
|
|
|
<attribute name="Implementation-Version" value="${release}"/>
|
2008-10-19 17:00:22 -04:00
|
|
|
<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"/>
|
2009-04-01 16:39:07 -04:00
|
|
|
<exclude name="jsmoothgen-ant-*.jar"/>
|
|
|
|
<exclude name="jarbundler-*.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"/>
|
2009-05-19 17:34:05 -04:00
|
|
|
<zip file="dist/davmail-${release}.zip">
|
2007-02-23 08:24:21 -05:00
|
|
|
<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>
|
2009-05-19 17:34:05 -04:00
|
|
|
<jar destfile="dist/davmail-${release}.war">
|
2008-08-21 18:02:21 -04:00
|
|
|
<fileset dir="dist/web"/>
|
|
|
|
</jar>
|
2009-05-19 17:34:05 -04:00
|
|
|
<tar tarfile="dist/davmail-linux-x86-${release}.tgz" compression="gzip">
|
|
|
|
<tarfileset prefix="davmail-linux-x86-${release}" dir="dist" filemode="755">
|
2007-10-23 09:14:39 -04:00
|
|
|
<include name="davmail.sh"/>
|
|
|
|
</tarfileset>
|
2009-05-19 17:34:05 -04:00
|
|
|
<tarfileset prefix="davmail-linux-x86-${release}" 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>
|
2009-05-19 17:34:05 -04:00
|
|
|
<tar tarfile="dist/davmail-linux-x86_64-${release}.tgz" compression="gzip">
|
|
|
|
<tarfileset prefix="davmail-linux-x86_64-${release}" dir="dist" filemode="755">
|
2008-11-04 08:55:25 -05:00
|
|
|
<include name="davmail.sh"/>
|
|
|
|
</tarfileset>
|
2009-05-19 17:34:05 -04:00
|
|
|
<tarfileset prefix="davmail-linux-x86_64-${release}" dir="dist">
|
2008-11-04 08:55:25 -05:00
|
|
|
<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"/>
|
2009-02-17 09:20:13 -05:00
|
|
|
<antcall target="dist-osx"/>
|
2008-11-04 08:55:25 -05:00
|
|
|
<!-- source package -->
|
2009-05-19 17:34:05 -04:00
|
|
|
<tar tarfile="dist/davmail-src-${release}.tgz" compression="gzip" longfile="gnu">
|
|
|
|
<tarfileset prefix="davmail-src-${release}" dir=".">
|
2008-11-04 08:55:25 -05:00
|
|
|
<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>
|