2010-01-11 17:02:05 -05:00
|
|
|
<project name="DavMail" default="dist" basedir=".">
|
|
|
|
<property file="user.properties"/>
|
2012-09-10 12:41:11 -04:00
|
|
|
<property name="version" value="4.0.0"/>
|
2010-01-11 17:02:05 -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"/>
|
|
|
|
<delete file="build.log"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<condition property="is.windows">
|
|
|
|
<os family="windows"/>
|
|
|
|
</condition>
|
|
|
|
<condition property="is.svn">
|
|
|
|
<available file=".svn"/>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<!-- failover value for revision -->
|
|
|
|
<property name="revision.max" value=""/>
|
|
|
|
<property name="release" value="${version}-${revision.max}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="defaultrelease" unless="is.svn">
|
|
|
|
<property name="release" value="${version}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init" depends="check-java6, svnrelease, defaultrelease">
|
|
|
|
<echo message="Creating DavMail ${release} dist package"/>
|
|
|
|
<mkdir dir="target/classes"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
|
|
|
<mkdir dir="target/classes"/>
|
2010-11-17 17:39:32 -05:00
|
|
|
<javac srcdir="src/java" destdir="target/classes" source="1.5" target="1.5" debug="on" encoding="UTF-8"
|
2010-11-24 04:36:53 -05:00
|
|
|
includeantruntime="false">
|
2010-01-11 17:02:05 -05:00
|
|
|
<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-nsis" if="is.windows">
|
|
|
|
<taskdef name="nsis" classname="net.sf.nsisant.Task">
|
|
|
|
<classpath location="lib/nsisant-1.2.jar"/>
|
|
|
|
</taskdef>
|
|
|
|
<nsis script="davmail-setup.nsi" verbosity="4" out="build.log" noconfig="yes">
|
|
|
|
<define name="VERSION" value="${release}"/>
|
|
|
|
</nsis>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<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"
|
|
|
|
build="${release}"
|
|
|
|
icon="src/osx/tray.icns"
|
|
|
|
infostring="DavMail Gateway ${release}"
|
|
|
|
jvmversion="1.5+"
|
|
|
|
version="${release}"
|
|
|
|
vmoptions="-Dsun.net.inetaddr.ttl=60 -Xmx512m"
|
|
|
|
workingdirectory="$APP_PACKAGE"
|
|
|
|
stubfile="src/osx/davmail">
|
2012-02-02 16:53:10 -05:00
|
|
|
<jarfileset dir="dist">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</jarfileset>
|
2010-01-11 17:02:05 -05:00
|
|
|
<jarfileset dir="dist/lib">
|
|
|
|
<include name="*.jar"/>
|
2010-05-13 15:25:15 -04:00
|
|
|
<include name="*.jnilib"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
<exclude name="swt*.jar"/>
|
2012-04-23 17:25:52 -04:00
|
|
|
<exclude name="junit-*.jar"/>
|
|
|
|
<exclude name="winrun4j-*.jar"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
</jarfileset>
|
|
|
|
</jarbundler>
|
|
|
|
<!-- prepare hide from dock option -->
|
2012-05-10 18:49:46 -04:00
|
|
|
<replaceregexp file="dist/DavMail.app/Contents/Info.plist" match="<key>CFBundleName</key>"
|
|
|
|
replace="<key>LSUIElement</key><string>0</string><key>CFBundleName</key>"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
<zip file="dist/DavMail-MacOSX-${release}.app.zip">
|
|
|
|
<zipfileset dir="dist">
|
|
|
|
<include name="DavMail.app/**/*"/>
|
|
|
|
<exclude name="DavMail.app/Contents/MacOS/davmail"/>
|
|
|
|
</zipfileset>
|
|
|
|
<zipfileset dir="dist" filemode="755">
|
|
|
|
<include name="DavMail.app/Contents/MacOS/davmail"/>
|
|
|
|
</zipfileset>
|
|
|
|
</zip>
|
|
|
|
<!--delete dir="dist/DavMail.app"/-->
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<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"
|
2010-07-27 18:01:47 -04:00
|
|
|
exec="davmail"
|
2010-01-11 17:02:05 -05:00
|
|
|
icon="/usr/share/davmail/davmail.png"
|
2011-02-02 18:13:07 -05:00
|
|
|
categories="Network;"
|
2010-01-11 17:02:05 -05:00
|
|
|
/>
|
|
|
|
<deb todir="dist"
|
|
|
|
package="davmail"
|
|
|
|
section="mail"
|
2011-10-26 19:10:06 -04:00
|
|
|
depends="openjdk-7-jre|openjdk-6-jre|sun-java6-jre,libswt-gtk-3-java|libswt-gtk-3.6-java|libswt-gtk-3.5-java|libswt-gtk-3.4-java">
|
2010-01-11 17:02:05 -05:00
|
|
|
<version upstream="${release}"/>
|
|
|
|
<maintainer email="mguessan@free.fr" name="Mickaël Guessant"/>
|
2010-08-24 17:46:56 -04:00
|
|
|
<description synopsis="DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway">
|
|
|
|
Ever wanted to get rid of Outlook ? DavMail is a POP/IMAP/SMTP/Caldav/Carddav/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 and user personal
|
|
|
|
contacts to allow recipient address completion in mail compose window and full calendar
|
|
|
|
support with attendees free/busy display.
|
2010-04-01 05:10:57 -04:00
|
|
|
The main goal of DavMail is to provide standard compliant protocols in front of proprietary
|
2011-10-29 17:00:31 -04:00
|
|
|
Exchange. This means LDAP for global address book, SMTP to send messages, IMAP to browse
|
2010-08-24 17:46:56 -04:00
|
|
|
messages on the server in any folder, POP to retrieve inbox messages only, Caldav for
|
|
|
|
calendar support and Carddav for personal contacts sync.
|
2010-04-01 05:10:57 -04:00
|
|
|
Thus any standard compliant client can be used with Microsoft Exchange.
|
|
|
|
DavMail gateway is implemented in java and should run on any platform. Releases are tested
|
|
|
|
on Windows, Linux (Ubuntu) and Mac OSX. Tested successfully with the Iphone
|
|
|
|
(gateway running on a server).
|
2010-01-11 17:02:05 -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"/>
|
2010-05-21 12:42:57 -04:00
|
|
|
<exclude name="lib/libgrowl-*.jar"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
</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>
|
|
|
|
|
2010-03-17 18:22:32 -04:00
|
|
|
<target name='dist-rpm'>
|
2012-02-15 17:18:31 -05:00
|
|
|
<taskdef name='redline' classname='org.freecompany.redline.ant.RedlineTask'>
|
2012-01-16 17:33:24 -05:00
|
|
|
<classpath location="lib/redline-1.1.9.jar"/>
|
2010-03-17 18:22:32 -04:00
|
|
|
</taskdef>
|
|
|
|
|
2012-02-15 17:18:31 -05:00
|
|
|
<redline name='davmail'
|
2010-11-24 04:36:53 -05:00
|
|
|
summary='DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway'
|
|
|
|
version='${release}'
|
|
|
|
release='1'
|
|
|
|
license='GPL'
|
|
|
|
group='Applications/Internet'
|
2012-02-15 17:18:31 -05:00
|
|
|
sourcePackage='davmail-${release}.src.rpm'
|
2010-11-24 04:36:53 -05:00
|
|
|
description='Ever wanted to get rid of Outlook ? DavMail is a POP/IMAP/SMTP/Caldav/Carddav/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 and user personal
|
|
|
|
contacts to allow recipient address completion in mail compose window and full calendar
|
|
|
|
support with attendees free/busy display.
|
|
|
|
The main goal of DavMail is to provide standard compliant protocols in front of proprietary
|
2011-10-29 17:00:31 -04:00
|
|
|
Exchange. This means LDAP for global address book, SMTP to send messages, IMAP to browse
|
2010-11-24 04:36:53 -05:00
|
|
|
messages on the server in any folder, POP to retrieve inbox messages only, Caldav for
|
|
|
|
calendar support and Carddav for personal contacts sync.
|
|
|
|
Thus any standard compliant client can be used with Microsoft Exchange.
|
|
|
|
DavMail gateway is implemented in java and should run on any platform. Releases are tested
|
|
|
|
on Windows, Linux (Ubuntu) and Mac OSX. Tested successfully with the Iphone
|
|
|
|
(gateway running on a server).'
|
|
|
|
url='http://davmail.sourceforge.net'
|
|
|
|
vendor='Mickael Guessant'
|
|
|
|
destination='dist'>
|
|
|
|
<depends name="jre" version="1.6"/>
|
2010-03-17 18:22:32 -04:00
|
|
|
<zipfileset dir="dist" prefix="usr/share/davmail">
|
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<!-- exclude swt jars from package -->
|
|
|
|
<exclude name="lib/swt*.jar"/>
|
2010-05-21 12:42:57 -04:00
|
|
|
<exclude name="lib/libgrowl-*.jar"/>
|
2010-03-17 18:22:32 -04:00
|
|
|
</zipfileset>
|
|
|
|
<zipfileset dir="src/bin" prefix="usr/bin" filemode="755">
|
|
|
|
<include name="davmail"/>
|
|
|
|
</zipfileset>
|
|
|
|
<zipfileset dir="dist" prefix="usr/share/davmail">
|
|
|
|
<include name="davmail.png"/>
|
|
|
|
</zipfileset>
|
|
|
|
<zipfileset dir="dist" prefix="usr/share/applications">
|
|
|
|
<include name="davmail.desktop"/>
|
|
|
|
</zipfileset>
|
2012-02-15 17:18:31 -05:00
|
|
|
</redline>
|
2010-03-17 18:22:32 -04:00
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
2010-01-11 17:02:05 -05:00
|
|
|
<target name="dist" depends="compile">
|
|
|
|
<property name="release-name" value="${release}-trunk"/>
|
|
|
|
<delete dir="dist"/>
|
|
|
|
<mkdir dir="dist"/>
|
|
|
|
<echo file="dist/version.txt" message="${release}"/>
|
2012-08-29 16:58:47 -04:00
|
|
|
<pathconvert property="manifest-classpath" pathsep=" ">
|
|
|
|
<mapper>
|
|
|
|
<chainedmapper>
|
|
|
|
<!-- remove absolute path -->
|
|
|
|
<flattenmapper/>
|
|
|
|
<globmapper from="*" to="lib/*"/>
|
|
|
|
</chainedmapper>
|
|
|
|
</mapper>
|
|
|
|
<path>
|
|
|
|
<fileset dir="lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<exclude name="ant-deb*.jar"/>
|
|
|
|
<exclude name="jarbundler-*.jar"/>
|
|
|
|
<exclude name="jsmoothgen-ant-*.jar"/>
|
|
|
|
<exclude name="junit-*.jar"/>
|
|
|
|
<exclude name="libgrowl-*.jar"/>
|
|
|
|
<exclude name="nsisant-*.jar"/>
|
|
|
|
<exclude name="redline-*.jar"/>
|
|
|
|
<exclude name="servlet-api-*.jar"/>
|
|
|
|
<exclude name="swt-*.jar"/>
|
|
|
|
<exclude name="winrun4j-*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</path>
|
|
|
|
</pathconvert>
|
2010-01-11 17:02:05 -05:00
|
|
|
<jar basedir="target/classes" destfile="dist/davmail.jar">
|
|
|
|
<manifest>
|
2012-08-29 16:58:47 -04:00
|
|
|
<attribute name="Main-Class" value="davmail.DavGateway"/>
|
|
|
|
<attribute name="Class-Path" value="${manifest-classpath}"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
<section name="davmail/">
|
|
|
|
<attribute name="Implementation-Title" value="DavMail Gateway"/>
|
|
|
|
<attribute name="Implementation-Version" value="${release-name}"/>
|
|
|
|
<attribute name="Implementation-Vendor" value="Mickael Guessant"/>
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
<copy todir="dist/lib">
|
|
|
|
<fileset dir="lib">
|
|
|
|
<include name="*.jar"/>
|
2010-05-13 15:25:15 -04:00
|
|
|
<include name="*.jnilib"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
<exclude name="nsisant*.jar"/>
|
|
|
|
<exclude name="jsmoothgen-ant-*.jar"/>
|
|
|
|
<exclude name="jarbundler-*.jar"/>
|
|
|
|
<exclude name="servlet-api.jar"/>
|
|
|
|
<exclude name="ant-deb-*.jar"/>
|
2010-05-04 17:00:19 -04:00
|
|
|
<exclude name="redline-*.jar"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<copy file="src/java/tray48.png" tofile="dist/davmail.png"/>
|
|
|
|
<copy file="davmail.sh" todir="dist"/>
|
2012-08-24 12:50:31 -04:00
|
|
|
|
|
|
|
<!-- use WinRun4J wrappers -->
|
2012-07-18 05:48:08 -04:00
|
|
|
<copy file="src/winrun4j/davmail.exe" todir="dist"/>
|
|
|
|
<copy file="src/winrun4j/davmailconsole.exe" todir="dist"/>
|
2012-04-23 17:25:52 -04:00
|
|
|
<copy file="src/winrun4j/davmailservice.exe" todir="dist"/>
|
2012-08-24 12:50:31 -04:00
|
|
|
<copy file="src/winrun4j/davmail64.exe" todir="dist"/>
|
2012-08-29 06:50:28 -04:00
|
|
|
<copy file="src/winrun4j/davmailservice64.exe" todir="dist"/>
|
2012-08-24 12:50:31 -04:00
|
|
|
|
2010-01-11 17:02:05 -05:00
|
|
|
<zip file="dist/davmail-${release-name}.zip">
|
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<include name="davmail.desktop"/>
|
|
|
|
<include name="davmail.sh"/>
|
|
|
|
<!-- exclude swt jars from platform independent package -->
|
|
|
|
<exclude name="lib/swt*.jar"/>
|
2010-05-21 12:42:57 -04:00
|
|
|
<exclude name="lib/libgrowl-*.jar"/>
|
2012-02-15 17:00:59 -05:00
|
|
|
<exclude name="lib/junit-*.jar"/>
|
2012-04-23 17:25:52 -04:00
|
|
|
<exclude name="lib/winrun4j-*.jar"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
</fileset>
|
|
|
|
</zip>
|
|
|
|
<copy todir="dist/web">
|
|
|
|
<fileset dir="src/web"/>
|
|
|
|
</copy>
|
|
|
|
<copy todir="dist/web/WEB-INF/lib">
|
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="dist/lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<exclude name="nsisant*.jar"/>
|
|
|
|
<exclude name="jsmoothgen-ant*.jar"/>
|
|
|
|
<exclude name="swt*.jar"/>
|
2010-05-21 12:42:57 -04:00
|
|
|
<exclude name="lib/libgrowl-*.jar"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<jar destfile="dist/davmail-${release-name}.war">
|
|
|
|
<fileset dir="dist/web"/>
|
|
|
|
</jar>
|
|
|
|
<tar tarfile="dist/davmail-linux-x86-${release-name}.tgz" compression="gzip">
|
|
|
|
<tarfileset prefix="davmail-linux-x86-${release}" dir="dist" filemode="755">
|
|
|
|
<include name="davmail.sh"/>
|
|
|
|
</tarfileset>
|
|
|
|
<tarfileset prefix="davmail-linux-x86-${release}" dir="dist">
|
|
|
|
<include name="davmail.desktop"/>
|
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<include name="lib/swt-*-gtk-linux-x86.jar"/>
|
|
|
|
<exclude name="lib/swt-*-gtk-linux-x86_64.jar"/>
|
|
|
|
<exclude name="lib/swt-*-carbon-macosx.jar"/>
|
2011-05-05 16:25:14 -04:00
|
|
|
<exclude name="lib/swt-*-win32-*.jar"/>
|
2010-05-21 12:42:57 -04:00
|
|
|
<exclude name="lib/libgrowl-*.jar"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
|
|
|
<tar tarfile="dist/davmail-linux-x86_64-${release-name}.tgz" compression="gzip">
|
|
|
|
<tarfileset prefix="davmail-linux-x86_64-${release}" dir="dist" filemode="755">
|
|
|
|
<include name="davmail.sh"/>
|
|
|
|
</tarfileset>
|
|
|
|
<tarfileset prefix="davmail-linux-x86_64-${release}" 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"/>
|
|
|
|
<exclude name="lib/swt-*-carbon-macosx.jar"/>
|
2011-05-05 16:25:14 -04:00
|
|
|
<exclude name="lib/swt-*-win32-*.jar"/>
|
2010-05-21 12:42:57 -04:00
|
|
|
<exclude name="lib/libgrowl-*.jar"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
2012-02-15 16:56:42 -05:00
|
|
|
<zip file="dist/davmail-${release-name}-windows-noinstall.zip">
|
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
<include name="*.jar"/>
|
|
|
|
<include name="davmail*.exe"/>
|
|
|
|
<exclude name="lib/swt-*-gtk-*.jar"/>
|
|
|
|
<exclude name="lib/libgrowl-*.jar"/>
|
2012-02-15 17:00:59 -05:00
|
|
|
<exclude name="lib/junit-*.jar"/>
|
2012-02-15 16:56:42 -05:00
|
|
|
</fileset>
|
|
|
|
</zip>
|
2010-01-11 17:02:05 -05:00
|
|
|
<antcall target="dist-nsis"/>
|
|
|
|
<antcall target="dist-deb"/>
|
2010-11-24 04:36:53 -05:00
|
|
|
<antcall target="dist-rpm"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
<antcall target="dist-osx"/>
|
|
|
|
<!-- source package -->
|
|
|
|
<tar tarfile="dist/davmail-src-${release-name}.tgz" compression="gzip" longfile="gnu">
|
|
|
|
<tarfileset prefix="davmail-src-${release-name}" dir=".">
|
|
|
|
<include name="**/*"/>
|
|
|
|
<exclude name="build.log"/>
|
|
|
|
<exclude name="dist/**"/>
|
|
|
|
<exclude name="target/**"/>
|
|
|
|
<exclude name="archive/**"/>
|
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name='fix-site'>
|
|
|
|
<!-- fix site title generated by mvn site -->
|
|
|
|
<replaceregexp match="Maven - "
|
|
|
|
replace="">
|
|
|
|
<fileset dir="target/site"/>
|
|
|
|
</replaceregexp>
|
2011-04-14 16:19:43 -04:00
|
|
|
<replaceregexp match="<a href="http://sourceforge.net/projects/davmail" id="bannerRight">"
|
|
|
|
replace="<script type="text/javascript"><!-- ${line.separator}var pkBaseURL = (("https:" == document.location.protocol) ? "https://sourceforge.net/apps/piwik/davmail/" : "http://sourceforge.net/apps/piwik/davmail/"); ${line.separator}document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); ${line.separator}//--></script>${line.separator}<script type="text/javascript">${line.separator}try {var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);piwikTracker.trackPageView();piwikTracker.enableLinkTracking();}catch(err){}${line.separator}</script><noscript><p><img src="http://sourceforge.net/apps/piwik/davmail/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript>">
|
|
|
|
<fileset dir="target/site"/>
|
|
|
|
</replaceregexp>
|
2010-01-11 17:02:05 -05:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name='upload-site' depends="fix-site">
|
|
|
|
<scp todir="${username},davmail@web.sourceforge.net:htdocs"
|
2012-01-10 18:24:38 -05:00
|
|
|
keyfile="${keyfile}" passphrase="${passphrase}" verbose="true" trust="true">
|
2010-01-11 17:02:05 -05:00
|
|
|
<fileset dir="target/site"/>
|
|
|
|
</scp>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="upload-release" depends="release">
|
|
|
|
<mkdir dir="dist/${version}"/>
|
|
|
|
<move todir="dist/${version}">
|
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="*${version}-*"/>
|
|
|
|
</fileset>
|
|
|
|
</move>
|
|
|
|
|
|
|
|
<scp todir="${username},davmail@frs.sourceforge.net:/home/frs/project/d/da/davmail/davmail"
|
|
|
|
keyfile="${keyfile}" passphrase="${passphrase}" verbose="true" trust="true">
|
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="${version}/*"/>
|
|
|
|
</fileset>
|
|
|
|
</scp>
|
|
|
|
</target>
|
|
|
|
|
2011-10-30 12:31:57 -04:00
|
|
|
<target name="upload-version">
|
2011-10-30 13:04:57 -04:00
|
|
|
<scp todir="${username},davmail@web.sourceforge.net:htdocs"
|
|
|
|
keyfile="${keyfile}" passphrase="${passphrase}" verbose="true">
|
2011-10-30 12:31:57 -04:00
|
|
|
<fileset dir="dist">
|
|
|
|
<include name="version.txt"/>
|
|
|
|
</fileset>
|
|
|
|
</scp>
|
|
|
|
</target>
|
|
|
|
|
2010-01-11 17:02:05 -05:00
|
|
|
<target name="release" depends="init">
|
2010-03-17 18:22:32 -04:00
|
|
|
<property name="release-name" value="${release}"/>
|
2010-01-11 17:02:05 -05:00
|
|
|
<antcall target="dist"/>
|
|
|
|
</target>
|
|
|
|
</project>
|