build.xml 24 KB
Newer Older
1 2
<project name="DavMail" default="dist" basedir=".">
    <property file="user.properties"/>
3
    <property name="version" value="4.5.1"/>
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

    <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">
26 27 28 29
        <or>
            <equals arg1="${ant.java.version}" arg2="1.6"/>
            <equals arg1="${ant.java.version}" arg2="1.7"/>
        </or>
30 31
    </condition>

32 33 34 35
    <condition property="is.utf8">
        <equals arg1="${file.encoding}" arg2="UTF-8"/>
    </condition>

36 37 38 39
    <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>

40 41 42 43
    <target name="check-encoding" unless="is.utf8">
        <fail message="Please force UTF-8 encoding to build debian package with set ANT_OPTS=-Dfile.encoding=UTF-8"/>
    </target>

44 45 46 47 48 49 50 51
    <target name="svnrelease" if="is.svn">
        <typedef resource="org/tigris/subversion/svnant/svnantlib.xml">
            <classpath>
                <fileset dir="svnant">
                    <include name="*.jar"/>
                </fileset>
            </classpath>
        </typedef>
52 53
        <svnSetting svnkit="true" javahl="false" id="svn.settings"/>
        <svn refid="svn.settings">
54 55 56 57 58 59 60 61 62 63 64
            <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>

65
    <target name="init" depends="check-encoding, check-java6, svnrelease, defaultrelease">
66 67 68 69 70 71
        <echo message="Creating DavMail ${release} dist package"/>
        <mkdir dir="target/classes"/>
    </target>

    <target name="compile" depends="init">
        <mkdir dir="target/classes"/>
72
        <javac srcdir="src/java" destdir="target/classes" source="1.5" target="1.5" debug="on" encoding="UTF-8"
73
               includeantruntime="false">
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
            <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">
112 113 114
            <jarfileset dir="dist">
                <include name="*.jar"/>
            </jarfileset>
115 116
            <jarfileset dir="dist/lib">
                <include name="*.jar"/>
117
                <include name="*.jnilib"/>
118
                <exclude name="swt*.jar"/>
119 120
                <exclude name="junit-*.jar"/>
                <exclude name="winrun4j-*.jar"/>
121 122 123
            </jarfileset>
        </jarbundler>
        <!-- prepare hide from dock option -->
124 125
        <replaceregexp file="dist/DavMail.app/Contents/Info.plist" match="&lt;key>CFBundleName&lt;/key>"
                       replace="&lt;key>LSUIElement&lt;/key>&lt;string>0&lt;/string>&lt;key>CFBundleName&lt;/key>"/>
126 127 128
        <!-- Retina display support -->
        <replaceregexp file="dist/DavMail.app/Contents/Info.plist" match="&lt;key>CFBundleName&lt;/key>"
                       replace="&lt;key>NSHighResolutionCapable&lt;/key>&lt;true/>&lt;key>CFBundleName&lt;/key>"/>
129
        <zip file="dist/DavMail-MacOSX-${release-name}.app.zip" comment="In order to run DavMail on OSX Mountain Lion, you will need to disable Gatekeeper temporarily, see http://davmail.sourceforge.net/macosxsetup.html">
130 131 132 133 134 135 136 137 138 139 140
            <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>

141 142 143 144 145
    <target name="dist-osx-java7" depends="dist-osx">
        <!-- move jar files to new location -->
        <move todir="dist/DavMail.app/Contents/Java">
            <fileset dir="dist/DavMail.app/Contents/Resources/Java"/>
        </move>
146 147 148 149
        <!-- move libgrowl to library path -->
        <move todir="dist/DavMail.app/Contents/MacOS">
            <fileset file="dist/DavMail.app/Contents/Java/libgrowl.jnilib"/>
        </move>
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
        <!-- use Java7 app launcher -->
        <copy file="src/osx-java7/JavaAppLauncher" tofile="dist/DavMail.app/Contents/MacOS/davmail" overwrite="true"/>
        <!-- include Java7 labels -->
        <copy todir="dist/DavMail.app/Contents/Resources">
            <fileset dir="src/osx-java7">
                <include name="en.lproj/**"/>
            </fileset>
        </copy>
        <!-- template plist -->
        <copy file="src/osx-java7/Info.plist" todir="dist/DavMail.app/Contents" overwrite="true">
            <filterchain>
                <expandproperties/>
            </filterchain>
        </copy>
        <zip file="dist/DavMail-MacOSX-Java7-${release-name}.app.zip" comment="In order to run DavMail on OSX Mountain Lion, you will need to disable Gatekeeper temporarily, see http://davmail.sourceforge.net/macosxsetup.html">
            <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>
    </target>

175 176 177 178 179 180 181
    <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"
182
                comment="DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
183
                exec="davmail"
184
                icon="/usr/share/davmail/davmail.png"
185
                categories="Network;"
186 187 188 189
                />
        <deb todir="dist"
             package="davmail"
             section="mail"
190
             depends="openjdk-7-jre|openjdk-6-jre|oracle-java7-jre|sun-java6-jre,libswt-gtk-3-java|libswt-gtk-3.6-java|libswt-gtk-3.5-java|libswt-gtk-3.4-java,libswt-cairo-gtk-3-jni|libswt-cairo-gtk-3.5-jni">
191 192
            <version upstream="${release}"/>
            <maintainer email="mguessan@free.fr" name="Mickaël Guessant"/>
193 194 195 196 197 198 199 200
            <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.
201
                The main goal of DavMail is to provide standard compliant protocols in front of proprietary
202
                Exchange. This means LDAP for global address book, SMTP to send messages, IMAP to browse
203 204
                messages on the server in any folder, POP to retrieve inbox messages only, Caldav for
                calendar support and Carddav for personal contacts sync.
205 206 207 208
                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).
209 210 211 212 213 214 215 216

                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"/>
217
                <exclude name="lib/libgrowl-*.jar"/>
218
                <exclude name="lib/winrun4j-*.jar"/>
219 220 221 222 223 224 225 226 227 228 229 230 231
            </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>

232
    <target name='dist-rpm'>
233
        <taskdef name='redline' classname='org.freecompany.redline.ant.RedlineTask'>
Mickaël Guessant's avatar
Mickaël Guessant committed
234
            <classpath location="lib/redline-1.1.9.jar"/>
235 236
        </taskdef>

237
        <redline name='davmail'
238 239 240 241 242
             summary='DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway'
             version='${release}'
             release='1'
             license='GPL'
             group='Applications/Internet'
243
             sourcePackage='davmail-${release}.src.rpm'
244 245 246 247 248 249 250 251
             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
252
                Exchange. This means LDAP for global address book, SMTP to send messages, IMAP to browse
253 254 255 256 257 258 259 260 261 262
                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"/>
263 264 265 266 267
            <zipfileset dir="dist" prefix="usr/share/davmail">
                <include name="lib/*.jar"/>
                <include name="*.jar"/>
                <!-- exclude swt jars from package -->
                <exclude name="lib/swt*.jar"/>
268
                <exclude name="lib/libgrowl-*.jar"/>
269 270 271 272 273 274 275 276 277 278
            </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>
279
        </redline>
280 281 282 283

    </target>


284 285 286 287 288
    <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}"/>
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312
        <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>
313 314
        <jar basedir="target/classes" destfile="dist/davmail.jar">
            <manifest>
315 316
                <attribute name="Main-Class" value="davmail.DavGateway"/>
                <attribute name="Class-Path" value="${manifest-classpath}"/>
317 318 319 320 321 322 323 324 325 326
                <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"/>
327
                <include name="*.jnilib"/>
328 329 330 331 332
                <exclude name="nsisant*.jar"/>
                <exclude name="jsmoothgen-ant-*.jar"/>
                <exclude name="jarbundler-*.jar"/>
                <exclude name="servlet-api.jar"/>
                <exclude name="ant-deb-*.jar"/>
333
                <exclude name="redline-*.jar"/>
334 335 336 337
            </fileset>
        </copy>
        <copy file="src/java/tray48.png" tofile="dist/davmail.png"/>
        <copy file="davmail.sh" todir="dist"/>
338 339

        <!-- use WinRun4J wrappers -->
340 341
        <copy file="src/winrun4j/davmail.exe" todir="dist"/>
        <copy file="src/winrun4j/davmailconsole.exe" todir="dist"/>
342
        <copy file="src/winrun4j/davmailservice.exe" todir="dist"/>
343
        <copy file="src/winrun4j/davmail64.exe" todir="dist"/>
344
        <copy file="src/winrun4j/davmailservice64.exe" todir="dist"/>
345

346
        <zip file="dist/davmail-${release-name}.zip">
347
            <zipfileset dir="dist">
348 349 350
                <include name="lib/*.jar"/>
                <include name="*.jar"/>
                <include name="davmail.desktop"/>
351
                <exclude name="davmail.sh"/>
352 353
                <!-- exclude swt jars from platform independent package -->
                <exclude name="lib/swt*.jar"/>
354
                <exclude name="lib/libgrowl-*.jar"/>
355
                <exclude name="lib/junit-*.jar"/>
356
                <exclude name="lib/winrun4j-*.jar"/>
357 358 359 360
            </zipfileset>
            <zipfileset  dir="dist" filemode="755">
                <include name="davmail.sh"/>
            </zipfileset>
361 362 363 364 365 366 367 368 369 370 371 372 373
        </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"/>
374 375
                <exclude name="libgrowl-*.jar"/>
                <exclude name="winrun4j-*.jar"/>
376 377
            </fileset>
        </copy>
378
        <copy todir="dist/web/WEB-INF/classes" file="src/etc/davmail.properties"/>
379 380 381 382 383 384 385 386 387 388 389 390 391 392
        <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"/>
393
                <exclude name="lib/swt-*-win32-*.jar"/>
394
                <exclude name="lib/libgrowl-*.jar"/>
395
                <exclude name="lib/winrun4j-*.jar"/>
396 397 398 399 400 401 402 403 404 405 406 407 408
            </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"/>
409
                <exclude name="lib/swt-*-win32-*.jar"/>
410
                <exclude name="lib/libgrowl-*.jar"/>
411
                <exclude name="lib/winrun4j-*.jar"/>
412 413
            </tarfileset>
        </tar>
414 415 416 417 418 419 420
        <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"/>
421
                <exclude name="lib/junit-*.jar"/>
422 423
            </fileset>
        </zip>
424 425
        <antcall target="dist-nsis"/>
        <antcall target="dist-deb"/>
426
        <!--antcall target="dist-rpm"/-->
427
        <antcall target="dist-osx-java7"/>
428
        <!-- source with binary deps package -->
429 430 431 432 433 434 435
        <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/**"/>
436
                <exclude name="user.properties"/>
437 438
            </tarfileset>
        </tar>
439 440 441 442 443 444 445 446 447 448 449 450
        <!-- davmail source only package for GNU/Linux distributions -->
        <tar tarfile="dist/davmail-srconly-${release-name}.tgz" compression="gzip" longfile="gnu">
            <tarfileset prefix="davmail-${release-name}" dir=".">
                <include name="**/*"/>
                <exclude name="build.log"/>
                <exclude name="dist/**"/>
                <exclude name="target/**"/>
                <exclude name="archive/**"/>
                <exclude name="lib/**"/>
                <exclude name="libgrowl/**"/>
                <exclude name="nsis/**"/>
                <exclude name="svnant/**"/>
451 452 453 454 455 456 457 458
                <exclude name="jsmooth-*/**"/>
                <exclude name="*.jsmooth"/>
                <exclude name="user.properties"/>
                <exclude name="src/winrun4j/**"/>
                <exclude name="src/osx/**"/>
                <exclude name="src/osx/**"/>
                <exclude name="src/contribs/**"/>
                <exclude name="*.nsi"/>
459 460
            </tarfileset>
        </tar>
461 462 463 464 465 466 467 468
    </target>

    <target name='fix-site'>
        <!-- fix site title generated by mvn site -->
        <replaceregexp match="Maven - "
                       replace="">
            <fileset dir="target/site"/>
        </replaceregexp>
469 470 471 472
        <replaceregexp match="&lt;a href=&quot;http://sourceforge.net/projects/davmail&quot; id=&quot;bannerRight&quot;&gt;"
                       replace="&lt;script type=&quot;text/javascript&quot;&gt;&lt;!-- ${line.separator}var pkBaseURL = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://sourceforge.net/apps/piwik/davmail/&quot; : &quot;http://sourceforge.net/apps/piwik/davmail/&quot;); ${line.separator}document.write(unescape(&quot;%3Cscript src='&quot; + pkBaseURL + &quot;piwik.js' type='text/javascript'%3E%3C/script%3E&quot;)); ${line.separator}//--&gt;&lt;/script&gt;${line.separator}&lt;script type=&quot;text/javascript&quot;&gt;${line.separator}try {var piwikTracker = Piwik.getTracker(pkBaseURL + &quot;piwik.php&quot;, 1);piwikTracker.trackPageView();piwikTracker.enableLinkTracking();}catch(err){}${line.separator}&lt;/script&gt;&lt;noscript&gt;&lt;p&gt;&lt;img src=&quot;http://sourceforge.net/apps/piwik/davmail/piwik.php?idsite=1&quot; style=&quot;border:0&quot; alt=&quot;&quot;/&gt;&lt;/p&gt;&lt;/noscript&gt;">
            <fileset dir="target/site"/>
        </replaceregexp>
473 474 475 476
    </target>

    <target name='upload-site' depends="fix-site">
        <scp todir="${username},davmail@web.sourceforge.net:htdocs"
477
             keyfile="${keyfile}" passphrase="${passphrase}" verbose="true" trust="true">
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
            <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>

498
    <target name="upload-version">
499
        <scp todir="${username},davmail@web.sourceforge.net:htdocs"
500
             keyfile="${keyfile}" passphrase="${passphrase}" verbose="true" trust="true">
501 502 503 504 505 506
            <fileset dir="dist">
                <include name="version.txt"/>
            </fileset>
        </scp>
    </target>

507
    <target name="release" depends="init">
508
        <property name="release-name" value="${release}"/>
509 510 511
        <antcall target="dist"/>
    </target>
</project>