2006-12-12 19:05:24 -05:00
|
|
|
<project name="DavMail" default="dist" basedir=".">
|
2008-11-06 17:32:55 -05:00
|
|
|
<property name="version" value="1.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"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<mkdir dir="target/classes"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
|
|
|
<mkdir dir="target/classes"/>
|
2007-10-23 04:24:59 -04:00
|
|
|
<javac srcdir="src/java" destdir="target/classes" source="1.5" target="1.5">
|
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>
|
|
|
|
|
|
|
|
<target name="dist" depends="compile">
|
2007-02-23 08:24:21 -05:00
|
|
|
<taskdef name="nsis" classname="net.sf.nsisant.Task">
|
|
|
|
<classpath location="lib/nsisant-1.2.jar"/>
|
|
|
|
</taskdef>
|
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"/>
|
2006-12-12 19:05:24 -05:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
2007-08-13 04:46:46 -04:00
|
|
|
<copy file="davmail.sh" todir="dist"/>
|
2007-10-23 19:05:10 -04:00
|
|
|
<copy file="davmail.desktop" 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>
|
2007-02-23 08:24:21 -05:00
|
|
|
<nsis script="davmail-setup.nsi" verbosity="4" out="build.log" noconfig="yes">
|
|
|
|
<define name="VERSION" value="${version}"/>
|
|
|
|
</nsis>
|
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>
|