2006-12-12 19:05:24 -05:00
|
|
|
<project name="DavMail" default="dist" basedir=".">
|
2009-03-09 18:31:20 -04:00
|
|
|
<property name="version" value="3.1.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>
|
|
|
|
|
|
|
|
<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-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>
|
|
|
|
<!-- Fake JavaApplicationStub, replaced with a link to
|
|
|
|
/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub-->
|
|
|
|
<touch file="dist/JavaApplicationStub"/>
|
|
|
|
<jarbundler dir="dist"
|
|
|
|
shortname="DavMail"
|
|
|
|
name="DavMail"
|
|
|
|
mainclass="davmail.DavGateway"
|
2009-03-02 11:05:59 -05:00
|
|
|
build="${version}"
|
2009-02-17 09:20:13 -05:00
|
|
|
icon="src/osx/tray.icns"
|
2009-03-02 11:05:59 -05:00
|
|
|
infostring="DavMail Gateway ${version}"
|
2009-02-17 09:20:13 -05:00
|
|
|
jvmversion="1.5+"
|
2009-03-02 11:05:59 -05:00
|
|
|
version="${version}"
|
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-02-17 09:20:13 -05:00
|
|
|
stubfile="dist/JavaApplicationStub">
|
|
|
|
<jarfileset dir="dist/lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<exclude name="swt*.jar"/>
|
|
|
|
</jarfileset>
|
|
|
|
<jarfileset dir="dist">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</jarfileset>
|
|
|
|
</jarbundler>
|
2009-02-23 05:10:43 -05:00
|
|
|
<delete file="dist/JavaApplicationStub"/>
|
2009-02-18 11:17:30 -05:00
|
|
|
<delete dir="dist/DavMail.app/Contents/MacOS"/>
|
|
|
|
<copy file="src/osx/DavMail.JavaApplicationStub.app.zip"
|
2009-03-02 11:05:59 -05:00
|
|
|
tofile="dist/DavMail-MacOSX-${version}.app.zip" overwrite="true"/>
|
2009-03-05 08:03:52 -05:00
|
|
|
<zip update="true" file="dist/DavMail-MacOSX-${version}.app.zip">
|
2009-02-18 11:17:30 -05:00
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="DavMail.app/**/*"/>
|
|
|
|
</fileset>
|
|
|
|
</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">
|
|
|
|
<version upstream="${version}"/>
|
|
|
|
<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"/>
|
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"/>
|
2009-02-17 09:20:13 -05:00
|
|
|
<antcall target="dist-osx"/>
|
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>
|