StendhalNetBeans: Difference between revisions

Content deleted Content added
imported>SimonSmall
Added category NetBeans
imported>AntumDeluge
StendhalNetBeans: Updating instructions for NetBeans 8.0.
Line 5:
Most of our developers use Eclipse, so using that is recommended, unless you are an experienced Netbeans user.
 
== New Project from CVS ==
==Dependencies==
<span style="color:blue; font-weight:bold; font-style:italic;">Updated for NetBeans 8.0</span>
To use NetBeans with Stendhal, you'll need these things (Approach 1):<br>
* NetBeans 5.5<br>
* A decent file manager/command line access. Reccomended: Konqueror or just Windows Explorer(Thunar/GNOME file manager aren't too great)<p>
* Command line access for CVS
 
<span style="font-style:italic;"><span style="color:red;">NOTE:</span> NetBeans does not come with built-in CVS support. You will need to install the plugin.</span>
Or these (Approach 2):<br>
<ol>
* NetBeans 6.0 or above (Possible with earlier versions. Check http://www.netbeans.org/ and/or your IDE's help for detailed instructions)<br>
<li>Go to the menu bar and select "Tools -> Plugins".</li>
* Maven plug-ins<br>
<li>Under the tab "Available Plugins" check "CVS" and click "Install".</li>
* CVS plug-in<br>
<li>Restart NetBeans</li>
<li>From the menu bar select "Team -> CVS -> Checkout".</li>
<li>Fill in the following information under "CVS Root":</li>
 
<pre>
For anonymous checkout:
CVS Root: :pserver:anonymous@arianne.cvs.sourceforge.net:/cvsroot/arianne
Password: Leave blank.
 
For privileged checkout:
CVS Root: :extssh:username@arianne.cvs.sourceforge.net:/cvsroot/arianne
Select "Use internal SSH".
Password: Your Sourceforge password.
</pre>
 
<li>Click "Next" and fill in the following information under "Module Checkout":</li>
 
<pre>
Module: stendhal
Branch: HEAD
Local Folder: Path to where you want source downloaded.
</pre>
 
<li>Click "Finish" and checkout will begin.</li>
<li>After checkout completes click "Create Project".</li>
<li>Select "Java -> Java Project with Existing Sources" and click "Next".</li>
</ol>
 
<span style="color:blue; font-weight:bold; font-style:italic;">Skip to section labeled "Configuring Project".</span>
 
 
== New Project from Git ==
<span style="color:blue; font-weight:bold; font-style:italic;">To be added...</span>
 
 
== Setting Up Project ==
 
<ol>
<li>Fill out the following information under "Name and Location":</li>
 
<pre>
Project Name: stendhal (or whatever you wish)
Project Folder: Path to the root directory of the downloaded Stendhal source code.
Build Script Name: nbbuild.xml (not important, will be deleted)
</pre>
 
<li>Click "Next".</li>
<li>Under "Source Package Folders" add the Stendhal root directory and the "src" sub-directory.</li>
<li>Under "Test Package Folders" add the "tests" folder from the Stendhal root directory and click "Next".</li>
<li>If NetBeans warns about a folder containing "compiled class files (*.class)" click "Ignore".</li>
<li>Now click "Finish".</li>
<li>Navigate into the "libs" directory of the Stendhal root directory.</li>
<li>Select all the .jar files and click "Open".</li>
<li>Click "OK".</li>
</ol>
 
 
== Configure Project ==
 
<ol>
<li>In the root directory (labeled <default package> in the project explorer tab) delete the two new files: manifest.mf and nbbuild.xml.</li>
<li>From the "Projects" tab select the Stendhal project and go to the menu bar and select "File -> Project Properties" (or right-click the project and select "Properties").</li>
<li>Select the category "Libraries" and under the "Compile" tab click "Add JAR/Folder".</li>
</ol>
 
== Step 1: Create a NetBeans Project ==