StendhalNetBeans: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge StendhalNetBeans: Add warning about incomplete instructions. |
imported>AntumDeluge |
||
| (132 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
== Notice == |
== Notice == |
||
Most of our developers use Eclipse, so using that is recommended, unless you are an experienced Netbeans user. |
Most of our developers use Eclipse, so using that is recommended, unless you are an experienced Netbeans user. |
||
<span style="color:red; font-weight:bold; font-style:italic;">Incomplete instructions...</span> |
<br><span style="color:red; font-weight:bold; font-style:italic;">Incomplete instructions...</span> |
||
== |
== Creating a New Project == |
||
<ol> |
|||
| ⚫ | |||
| ⚫ | |||
<li>Fill in the following information under "Name and Location":</li> |
|||
<pre> |
|||
| ⚫ | |||
Project Location: Choose the parent directory of your project. |
|||
Uncheck "Create Main Class". |
|||
</pre> |
|||
| ⚫ | |||
</ol> |
|||
== Download Source from CVS == |
|||
<span style="color:blue; font-weight:bold; font-style:italic;">Updated for NetBeans 8.0</span> |
<span style="color:blue; font-weight:bold; font-style:italic;">Updated for NetBeans 8.0</span> |
||
<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> |
<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> |
<ol> |
||
<li>Go to the menu bar and select "Tools -> Plugins".</li> |
<li>Go to the menu bar and select "Tools -> Plugins".</li> |
||
<li>Under the tab "Available Plugins" check "CVS" and click "Install".</li> |
<li>Under the tab "Available Plugins" check "CVS" and click "Install".</li> |
||
<li>Restart NetBeans</li> |
<li>Restart NetBeans</li> |
||
</ol> |
|||
| ⚫ | |||
=== 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> |
<li>Fill in the following information under "CVS Root":</li> |
||
<pre> |
<pre> |
||
For anonymous checkout: |
For anonymous checkout: |
||
CVS Root: :pserver:anonymous@arianne.cvs.sourceforge.net:/cvsroot/arianne |
CVS Root: :pserver:anonymous@arianne.cvs.sourceforge.net:/cvsroot/arianne/stendhal |
||
Password: |
Password: (leave blank) |
||
For privileged checkout: |
For privileged checkout: |
||
CVS Root: : |
CVS Root: :ext:username@arianne.cvs.sourceforge.net:/cvsroot/arianne/stendhal |
||
Select "Use internal SSH". |
Select "Use internal SSH". |
||
Password: |
Password: (your Sourceforge password) |
||
</pre> |
</pre> |
||
<li>Click "Next" |
<li>Click "Next".</li> |
||
<li>Fill in the following information under "Folder to Import":</li> |
|||
<pre> |
<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> |
</pre> |
||
<li>Click "Finish" |
<li>Click "Finish" to begin import and checkout.</li> |
||
<li>After importing is finished go to the menu bar and select "Team -> Update -> Update" or right-click the project and select "CVS -> Update -> Update".</li> |
|||
<li>After checkout completes click "Create Project".</li> |
|||
| ⚫ | |||
</ol> |
</ol> |
||
< |
<p style="font-weight:bold; font-style:italic;">[[ #Configure_Project | Skip to section labelled "Configure Project". ]]</p> |
||
== |
== Download Source from Git == |
||
<span style="color:blue; font-weight:bold; font-style:italic;"> |
<span style="color:blue; font-weight:bold; font-style:italic;">Incomplete...</span> |
||
== Setting Up Project == |
|||
<ol> |
<ol> |
||
<li> |
<li>From the menu bar select "Team -> Git -> Clone".</li> |
||
<li>Fill in the following information:</li> |
|||
<span style="font-style:italic;"><span style="color:red;">NOTE:</span> While there are plans to move Stendhal from CVS to Git there is not yet an official Git repository. The following URIs are to testing repository which may not contain updated code. These will change once an official repository is available.</span> |
|||
<pre> |
<pre> |
||
Anonymous checkout: |
|||
| ⚫ | |||
Repository: git://git.code.sf.net/p/delugebuilds/stendhal-git |
|||
Project Folder: Path to the root directory of the downloaded Stendhal source code. |
|||
Build Script Name: nbbuild.xml (not important, will be deleted) |
|||
Privileged checkout: |
|||
Repository: ssh://username@git.code.sf.net/p/delugebuilds/stendhal-git |
|||
Password: Sourceforge password. |
|||
</pre> |
</pre> |
||
| ⚫ | |||
<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> |
</ol> |
||
== Configure Project == |
== Configure Project == |
||
<ol> |
<ol> |
||
<li> |
<li>Select the project in the "Project" tab of the groups window.</li> |
||
<li> |
<li>Go to the menu bar and select "File -> Project Properties" or right-click the project and select "Properties.</li> |
||
<li>Select the |
<li>Select the "Sources" category in the left-hand pane.</li> |
||
<li>Fill in the following information:</li> |
|||
<pre> |
|||
Source Package Folders: |
|||
Package Folder = (the project's root folder) |
|||
Label = (your choice) |
|||
</pre> |
|||
<li>Select the "Libraries" category.</li> |
|||
<li>Under the "Compile" tab click "Add JAR/Folder".</li> |
<li>Under the "Compile" tab click "Add JAR/Folder".</li> |
||
<li>Navigate into the "libs" directory of the |
<li>Navigate into the "libs" directory of the project's root directory.</li> |
||
<li>Select all the .jar files and click "Open".</li> |
<li>Select all the .jar files and click "Open".</li> |
||
<li> |
<li>Do the same for the "Processor", "Run", "Compile Tests", and "Run Tests" tabs. |
||
<li>Select the "Run" category.</li> |
|||
<li>Under "Configuration" click "New" and add a "Configuration Name" for the server and click "OK".</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> |
<li>Fill in the following information:</li> |
||
| Line 103: | Line 129: | ||
<li>Click "OK".</li> |
<li>Click "OK".</li> |
||
</ol> |
</ol> |
||
== Running the Server == |
== Running the Server == |
||