StendhalNetBeans: Difference between revisions

Content deleted Content added
imported>AntumDeluge
StendhalNetBeans: Add some instructions for Git checkout/clone.
imported>AntumDeluge
 
(150 intermediate revisions by the same user not shown)
Line 4:
== Notice ==
Most of our developers use Eclipse, so using that is recommended, unless you are an experienced Netbeans user.
<br><span style="color:red; font-weight:bold; font-style:italic;">Incomplete instructions...</span>
 
== NewCreating Projecta fromNew CVSProject ==
 
<ol>
<li>FromCreate a new Java project. Go to the menu bar and select "TeamFile -> CVS ->New CheckoutProject".</li>
<li>In the New Project window Select "Java -> Java Project with Existing SourcesApplication" and click "Next".</li>
<li>Fill in the following information under "Name and Location":</li>
 
<pre>
Project Name: stendhal (or whatever you wishwant)
Project Location: Choose the parent directory of your project.
Uncheck "Create Main Class".
</olpre>
 
<li>Click "OKFinish".</li>
</ol>
 
== Download Source from CVS ==
<span style="color:blue; font-weight:bold; font-style:italic;">Updated for NetBeans 8.0</span>
 
<span style="font-weight:bold; 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>
=== Install CVS Plugin ===
<ol>
<li>Go to the menu bar and select "Tools -> Plugins".</li>
<li>Under the tab "Available Plugins" check "CVS" and click "Install".</li>
<li>Restart NetBeans</li>
</ol>
<li>From the menu bar select "Team -> CVS -> Checkout".</li>
 
=== CVS Checkout ===
<ol>
<li>In the group window under the "Projects" tab select the project.</li>
<li>From the menu bar select "Team -> CVS -> Import into Repository" or right-click the project and select "Versioning -> Import into CVS Repository".</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/stendhal
Password: Leave(leave blank.)
 
For privileged checkout:
CVS Root: :extsshext:username@arianne.cvs.sourceforge.net:/cvsroot/arianne/stendhal
Select "Use internal SSH".
Password: Your(your Sourceforge password.)
</pre>
 
<li>Click "Next" and fill in the following information under "Module Checkout":.</li>
<li>Fill in the following information under "Folder to Import":</li>
 
<pre>
Folder to Import: (the project's root directory)
Module: stendhal
Import Message: (anything, cannot be left empty)
Branch: HEAD
Repository Folder: stendhal
Local Folder: Path to where you want source downloaded.
Check "Checkout After Import".
</pre>
 
<li>Click "Finish" andto checkoutbegin willimport beginand checkout.</li>
<li>FromAfter theimporting "Projects"is tab select the Stendhal project andfinished go to the menu bar and select "FileTeam -> ProjectUpdate Properties-> Update" (or right-click the project and select "PropertiesCVS -> Update -> Update").</li>
<li>After checkout completes click "Create Project".</li>
<li>Select "Java -> Java Project with Existing Sources" and click "Next".</li>
</ol>
 
<spanp style="color:blue; font-weight:bold; font-style:italic;">[[ #Configure_Project | Skip to section labeledlabelled "Setting UpConfigure Project". ]]</spanp>
 
== NewDownload ProjectSource from Git ==
<span style="color:blue; font-weight:bold; font-style:italic;">Incomplete...</span>
 
Line 62 ⟶ 85:
</ol>
 
== Setting UpConfigure Project ==
 
<ol>
<li>Fill outSelect the followingproject informationin underthe "NameProject" andtab Location":of the groups window.</li>
<li>Go to the menu bar and select "File -> Project Properties" or right-click the project and select "Properties.</li>
<li>Select the category "LibrariesSources" category in the left-hand pane.</li>
<li>Fill in the following information:</li>
 
<pre>
Source Package Folders:
Project Name: stendhal (or whatever you wish)
Package Folder = (the project's root folder)
Project Folder: Path to the root directory of the downloaded Stendhal source code.
Label = (your choice)
Build Script Name: nbbuild.xml (not important, will be deleted)
</pre>
 
<li>ClickSelect the "NextLibraries" category.</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" in the left-hand pane.
<li>Under the "Compile" tab click "Add JAR/Folder".</li>
<li>Navigate into the "libs" directory of the Stendhalproject's root directory.</li>
<li>Select all the .jar files and click "Open".</li>
<li>SelectDo the categorysame for the "Processor", "Run", in"Compile theTests", left-handand "Run Tests" panetabs.</li>
<li>Select the "Run" category.</li>
<li>Under "Configuration" click "New" and add a "Configuration Name" for the server and click "OK".</li>
<li>Fill in the following information:</li>
Line 118 ⟶ 129:
<li>Click "OK".</li>
</ol>
 
 
== Running the Server ==