<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
<document>
    <header>
        <title>Building Beehive</title>
    </header>
    <body>
    <section id="setup">
        <title>Setting Up Beehive on Your Machine</title>
        <p>To build Beehive, you need to have installed JDK 5.0 or later and set the JAVA_HOME environment variable to point to the 
        location of the JDK.  Download a JDK <a href="http://java.sun.com/j2se/1.5.0/download.jsp">here</a>.  Beehive also requires
        Ant for builds and uses Tomcat for testing.
        </p>
        <p>
        Checkout the Beehive source code using this command:
        </p>
        <source>svn checkout https://svn.apache.org/repos/asf/beehive/trunk</source>
        <p>
        which will create a <code>beehive/trunk</code> directory that contains the Beehive source from SVN.
        </p>
    </section>
    <section>
        <title>Building Beehive</title>
        <p>
        To build Beehive, you will need to download a dependency by running <code>ant bootstrap</code>.  Then these Ant commands can be 
        used to clean, build, run the tests, and create a distribution:
        </p>
        <source>ant clean</source>
        <source>ant deploy</source>
        <source>ant drt</source>
        <source>ant build.dist</source>
    </section>
    <section>
        <title>Using Proxies With a Beehive Build</title>
        <p>
        If you need to use proxies, you can simply download the JSR-173 API package from:
        </p>
        <source>http://www.ibiblio.org/maven/xmlbeans/jars/jsr173_1.0_api_bundle.jar</source>
        <p>
        and copy the file into the directory <code>beehive/trunk/installed/jsr173</code> directory.  Then, run 
        </p>
        <source>ant bootstrap</source>
    </section>
    </body>
    <footer>
    <legal>Java, J2EE, and JCP are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.<br/>
    &copy; 2004, Apache Software Foundation
    </legal>
    </footer>
</document>
