StendhalNetBeans: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Javydreamercsw |
imported>Javydreamercsw Add Netbeans project setup with Maven support. |
||
| Line 6: | Line 6: | ||
Or these (Approach 2):<br> |
Or these (Approach 2):<br> |
||
* NetBeans 6.0 Beta 1 or above (Possible with earlier versions. Check http://www.netbeans.org/ and/or your IDE's help for detailed instructions)<br> |
|||
* NetBeans 5.5 or above<br> |
|||
* Maven plug-ins<br> |
* Maven plug-ins<br> |
||
* CVS plug-in<br> |
* CVS plug-in<br> |
||
| Line 71: | Line 71: | ||
From there, copy EVERY file and folder into your NetBeans project folder (probably ~/Stendhal or My Documents/Stendhal).<br> |
From there, copy EVERY file and folder into your NetBeans project folder (probably ~/Stendhal or My Documents/Stendhal).<br> |
||
'''You should replace the entire src folder and build.xml''' |
'''You should replace the entire src folder and build.xml''' |
||
---- |
----<br> |
||
| ⚫ | |||
| ⚫ | |||
<u><font size=4>Add Libraries</font></u><br> |
<u><font size=4>Add Libraries</font></u><br> |
||
| Line 85: | Line 84: | ||
<br> |
<br> |
||
== Approach 2 == |
|||
== Step 1: Get Netbeans Plugins == |
|||
<u><font size=4>Get Maven Support</font></u><br> |
|||
<b>Follow the instructions from the IDE's help. (Extracted from Netbeans 6.0 Beta 1 Help)</b><br> |
|||
The IDE's Plugins manager enables you to update your IDE's installed plugins dynamically. You can also use the Plugins manager to add new plugins and functionality to the IDE.<br> |
|||
When you use the Plugins manager to update the IDE, the IDE checks the registered update centers to see if there are new plugins or new versions of already installed plugins available. If new or updated plugins are available, you can select, download, and install the plugins using the Plugins manager.<br> |
|||
In addition to the default IDE Update Center, you can choose from several update centers that offer different types of plugins, such as experimental new plugins or old plugins that are no longer in regular distribution.<br> |
|||
<b>To update installed plugins from the Update Center:</b><br> |
|||
* Choose Tools > Plugins from the main menu to open the Plugins manager.<br> |
|||
* Click the Updates tab to display available updates of installed plugins.<br> |
|||
* In the left pane, select the plugins you wish to update and click Update.<br> |
|||
* Complete the pages in the installer to download and install the update.<br> |
|||
* The left pane of the Updates tab displays the installed plugins which have updates available from the update centers. By default, the IDE regularly checks the registered update centers for available updates of installed plugins. If no plugins are displayed in the left pane, it means that no updates were available the last time the IDE checked the update center.<br> |
|||
<b>To add new plugins from the Update Center:</b><br> |
|||
* Choose Tools > Plugins from the main menu to open the Plugins manager.<br> |
|||
* Click the Available Plugins tab to display plugins that are available but not installed.<br> |
|||
* In the left pane, select the plug ins you wish to add and click Install.<br> |
|||
* Complete the pages in the installer to download and install the plugin.<br> |
|||
<b>Notes:</b> |
|||
Some plugins may require you to restart the IDE to complete the update process.<br> |
|||
You can set the frequency that the IDE checks for updates in the Settings tab of the Plugins manager. You can click Reload Catalog to check the update centers immediately.<br> |
|||
== Step 2: Checkout Stendhal from Netbeans using CVS == |
|||
* Choose Versioning > CVS > Checkout<br> |
|||
* Enter ':pserver:anonymous@arianne.cvs.sourceforge.net:/cvsroot/arianne' in the CVS root field.<br> |
|||
* Click next.<br> |
|||
* Click Browse in the Module section and select the stendhal folder from the pop up window.<br> |
|||
* Browse for a folder for the checkout. (If the wizard displays an error messages it means that the target folder doesn't exists and have to be created outside of Netbeans.<br> |
|||
* Click Finish.<br> |
|||
* When prompted to open a project from the checked out files click yes.<br> |
|||
This will start the checkout process. It can take a while.<br> |
|||
== Step 3: Update Maven Repository (Optional) == |
|||
If the project node has an exclamation symbol it means you are missing jar files in your Maven local repository.<br> |
|||
<b> If this is your case follow the next steps:</b> |
|||
* Right-click the project node from Netbeans Project tab.<br> |
|||
* Click 'Show and Resolve Problems...'.<br> |
|||
* Click 'Download Libraries'.<br> |
|||
== Step 4: Update Stendhal with CVS == |
|||
<b> In order to update your copy of Stendhal with the repository follow the next steps:</b> |
|||
* Right-click the project node from Netbeans Project tab.<br> |
|||
* Click CVS > Update with dependencies.<br> |
|||
Your copy of Stendhal is updated after a while.<br> |
|||
== After any approach is completed... == |
|||
Now NetBeans should be ready to work with Stendhal. The ant buildfile has been modified to work with NetBeans so you can:<br> |
Now NetBeans should be ready to work with Stendhal. The ant buildfile has been modified to work with NetBeans so you can:<br> |
||