# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /home/ieugen/contracte/gsoc2011/code/james-server-3.0-beta1
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: src/site/xdoc/dev-build.xml
--- src/site/xdoc/dev-build.xml Base (BASE)
+++ src/site/xdoc/dev-build.xml Locally Modified (Based On LOCAL)
@@ -177,6 +177,49 @@
 
   </section>
 
+  <section name="Build James from NetBeans">
+      
+      <p>This was done using NetBeans 7, which comes bundeled with Maven 3, needed to build James 3. 
+      Older versions of NetBeans should be able to build James fine, provided that you configure them to use an instance of Maven 3, if they do not have it. 
+      I used james 3.0-beta1 release and it builded in 7:40 min on my notebook running Debian Squeeze. 
+      </p>
+      
+      <subsection name="Getting the sources from the repository">
+          <p>Building James with NetBeans is very easy as it comes with Subersion and Maven support already build in.
+          Maven is bundeled with the IDE, but Subverion is not, so you will have to install Subversion yourself and NetBeans will be able to use it.
+          You can get more details on how to install and where to get Subversion from the NetBeans Help menu by clicking on <strong>Help Contents</strong> and from there go to the <strong>IDE Basics->Version Control and File Hierarchy->Subversion</strong> topic.
+          </p>
+          <p>For Linux users, Subversion is probably packaged by your distribution so use your distribution tools to install it (aptitude, yum, etc.)</p>
+          <p>Once you have Subversion, go to <strong>Team->Subversion->Checkout</strong> menu entry. <br/>
+          You will see an dialog window used to enter the information about the Subversion repository you are going to use. It looks like this:
+          <img src="./images/netbeans/netbeans-svn-checkout1.png" width="300"/>. <br/> 
+          In the <code>Repository URL</code> field enter the location for James repository and click <code>Next</code>. 
+          You can use the following URL to get the trunk or developement version: 
+          <a href="http://svn.apache.org/repos/asf/james/server/trunk">http://svn.apache.org/repos/asf/james/server/trunk</a>.<br/>
+          After this you will be presented with another dialog window where you can configure which folders to check out and where to save them on your machine. 
+          <img src="./images/netbeans/netbeans-svn-checkout2.png" width="300"/>. <br/> 
+          If you supplied the above URL you can click <code>Finish</code> to get trunk version and start hacking. 
+          You can choose another folder by clicking <code>Browse</code>. A new dialog window will open and from there you cand browse
+          the whole subversion repository. I wanted to build James 3.0beta so I choosed <code>james-serve-3.0-beta1</code> under james/server/tags/ folder.
+          <img src="./images/netbeans/netbeans-svn-checkout-browse.png" width="300"/>. <br/> 
+          </p>
+          <p>After you click <code>Finish</code> NetBeans will checkout the sources. It will detect the Maven project and ask you if you wish to open the project.
+          If you open the project you will see in the Projects Window (<code>CTRL+1</code> if not visible) something similar to the next image:<br/> 
+          <img src="./images/netbeans/netbeans-james-project.png" width="300"/>. 
+          </p>
+          
+      </subsection>
+
+      <subsection name="Building the project"> 
+        <p> Building the project does not require too much work. Just go to <code>Run->Build Project</code> menu option. 
+        Make sure that James is the main project (if you have other projects open) or NetBeans will build that project instead of James.
+        Once the build is finished you will find the binary distribution in <code>container-spring/target</code> directory.
+        <img src="./images/netbeans/james-build-dir.png" width="300"/>. <br/>
+        </p>
+      </subsection>
+
+  </section>
+  
   <section name="Build James Source from other IDEs">
   
     <p>We will be happy to include on this page any other tutorial you could send 
