<?xml version="1.0"?>
<document xmlns="http://maven.apache.org/XDOC/2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">

    <properties>
        <title>DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway - Frequently asked questions</title>
        <author email="mguessan@free.fr">Mickael Guessant</author>
    </properties>

    <body>

        <section name="Building DavMail from source">
            <p>Building DavMail is quite simple:</p>
            <ul>
                <li>Make sure you have Java 6 installed and set as current version by checking
                    JAVA_HOME:
                    <br/>
                    <ul>
                        <li>Unix/OSX:
                            <source>echo $JAVA_HOME</source>
                        </li>
                        <li>Windows:
                            <source>echo %JAVA_HOME%</source>
                        </li>
                    </ul>
                </li>
                <li>Check if you already have Apache Ant installed :<br/>
                    <source>ant -version</source><br/>
                    If you don't, download and unzip ant from&#x20;<a href="http://ant.apache.org/">ant.apache.org</a>,
                    add ant/bin full path to the PATH environment variable.
                </li>
                <li>Get DavMail source package from sourceforge and uncompress it:
                    <source>tar xvzf davmail-src-*.tgz</source>
                    <br/>
                    or checkout trunk:
                    <source>svn co http://davmail.svn.sourceforge.net/svnroot/davmail/trunk</source>
                    <br/>
                    or get and uncompress tarball from
                    <a href="http://davmail.svn.sourceforge.net/viewvc/davmail/trunk">
                        http://davmail.svn.sourceforge.net/viewvc/davmail/trunk
                    </a>
                </li>
                <li>Additional step on Windows: Download and install NSIS from
                    <a href="http://nsis.sourceforge.net">http://nsis.sourceforge.net</a>.
                    Then get KillProcess plugin from
                    <a href="http://www.esanu.name/software/index.php/nsis-kill-process/">
                        http://www.esanu.name/software/index.php/nsis-kill-process/
                    </a>
                    or the nsis directory in DavMail source. Copy the processwork.dll
                    library to NSIS plugin directory.
                </li>
                <li>Go into davmail directory root directory (which contains the build.xml file) and
                    type:
                    <source>ant</source>
                </li>
            </ul>
            <p>Packages are then available under dist
            </p>
        </section>
    </body>
</document>