<?xml version="1.0"?>

<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">

<document>
    <header>
        <title>How To Build Web Services Project's Website</title>
    </header>
    <body>
        <section>
            <title>Installing Forrest</title>
            <p>
                The Web Services website build system requires two components to perform a build.
                <a href="ext:ant">Ant</a> and
                <a href="ext:forrest">forrest</a>.
            </p>
            <p>
                Specifically the build has been tested to work with Ant version
                1.8.X and Forrest 0.9-dev. To install these products download
                the distributions and follow the instructions in their
                documentation.  Make sure you don't forget to set the
                environment variables FORREST_HOME and ANT_HOME.  The
                ANT_HOME/bin directory should be in the path.
            </p>
        </section>
        <section>
            <title>Checking out ws-site module</title>
            <p>
                Check out
            </p>
            <p>
                ws-site
            </p>
            <p>
                module via your favorite SVN tools. Please follow the guildeline written <a href="site:svn">here</a>.
            </p>
        </section>
        <section>
            <title>Running the Build</title>
            <p>
                The main targets of interest to our users are:
            </p>
            <table>
                <tr>
                    <th>Target</th>
                    <th>Description</th>
                </tr>
                <tr>
                    <td>clean</td>
                    <td>Erase all build work products (ie, everything in the
                        build directory</td>
                </tr>
                <tr>
                    <td>site</td>
                    <td>Build site</td>
                </tr>
                <tr>
                    <td>replace</td>
                    <td>Build site and copy to ./targets directory</td>
                </tr>
                <tr>
                    <td>run-forrest (default)</td>
                    <td>Do clean up and build Site</td>
                </tr>
            </table>
        </section>
        <section>
            <title>For Committers</title>
            <p>
                The procedure to make changes to http://ws.apache.org/ ...
            </p>
            <ul>
            <li>*cd* into the local "ws-site" SVN dir</li>
            <li>execute "ant"</li>
            <li>execute "ant replace"</li>
            <li>svn commit</li>
            <li>(If you are in a hurry) ssh to www.apache.org, *cd* to /www/ws.apache.org, and execute "svn update"</li>
            </ul>
        </section>
        <section>
            <title>TIPS</title>
            <p>
            You can check whether ws-site will be successfully built or not by following these procedures.
            </p>
            <ul>
            <li>cd into the local "ws-site" SVN dir</li>
            <li>execute "forrest run"</li>
            <li>point the browser to http://localhost:8888/ to see the site</li>
            <li>edit the docs *in place* (build/webapp/content/xdocs/...) and see changes via the browser by reloading the page</li>
            </ul>
        </section>
        <section>
            <title>F.A.Q.</title>
            <p><em>Q1.</em><br/>
                I encountered<br/>
                The &lt;xmlcatalog&gt; data type doesn't support the nested &quot;catalogpath&quot; element.<br/>
                error, during the build.
            </p>
            <p><em>Q2.</em><br/>
		I see an error like this regarding mirrors.pdf<br/>
		[java] X [0]	mirrors.pdf BROKEN ....
	    </p>
            <p><em>A2.</em><br/>
		This is a known issue, but does not affect the site itself.
            </p>
            <p><em>Q3.</em><br/>
		The run-forrest target does not complete because of the mirrors.pdf error, so i can't update the site<br/>
	    </p>
            <p><em>A3.</em><br/>
		There is another target named 'replace' that does the appropriate work
            </p>
            <p>
            <strong>( more to be come )</strong>
            </p>
        </section>
    </body>
</document>


