Stendhal on Eclipse: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Balaur mNo edit summary |
imported>Hendrik Brummermann moved to git |
||
| Line 1: | Line 1: | ||
{{Navigation for Stendhal Top|Building & Hosting}} |
{{Navigation for Stendhal Top|Building & Hosting}} |
||
== New Project from |
== New Project from Git == |
||
In Eclipse: |
|||
<ol> |
|||
<li>Open the view called "Package Explorer".</li> |
|||
<li>Go to the menu bar and select "File -> New Project".</li> |
|||
<li>In the "New Project" window select "CVS -> Project from CVS" and click "Next".</li> |
|||
<li>Select "Create a new repository location" and click "Next".</li> |
|||
<li>Fill in the following information: |
|||
<pre> |
|||
Host: arianne.cvs.sourceforge.net |
|||
Repository: /cvsroot/arianne |
|||
User: "anonymous" or Sourceforge username (for privileged checkout). |
|||
Password: Leave blank for anonymous checkout. |
|||
Connection type: pserver (for anonymous checkout) or extssh (for privileged checkout). |
|||
Select "Use default port". |
|||
</pre> |
|||
<li>Click "Next".</li> |
|||
<li>Use specified module name: "stendhal" (or select "stendhal" from "Use an existing module).</li> |
|||
<li>Click "Next".</li> |
|||
<li>Select "Checkout as a project configured using the new project wizard" and click "Finish".</li> |
|||
</ol> |
|||
== New Project from Git == |
|||
<span style="font-style:italic;"><span style="color:red;">NOTE:</span> There are plans to move Stendhal from CVS to Git. But, there is not yet an official Git repository. For now it is recommended to checkout the source from CVS.</span><br> |
|||
<span style="font-style:italic;"><span style="color:red;">NOTE:</span> Eclipse does not come installed with a Git plugin. You will need to install EGit.</span> |
|||
<ol> |
|||
<li>Open the Eclipse Marketplace (Help -> Eclipse Marketplace).</li> |
|||
<li>Find and install EGit.</li> |
|||
<li>Restart Eclipse.</li> |
|||
<li>Open package explorer view.</li> |
<li>Open package explorer view.</li> |
||
<li>Select "File -> Import -> Git -> Projects from Git" and click "Next".</li> |
<li>Select "File -> Import -> Git -> Projects from Git" and click "Next".</li> |
||
| Line 39: | Line 11: | ||
<pre> |
<pre> |
||
NOTE: These Git URIs are for testing and not the official Stendhal repository. |
|||
They may not contain updated source code. When an official repository |
|||
has been established it will be shown here. |
|||
For anonymous checkout: |
For anonymous checkout: |
||
URI: git://git.code.sf.net/p/ |
URI: git://git.code.sf.net/p/arianne/stendhal |
||
For privileged checkout: |
For privileged checkout: |
||
URI: ssh://username@git.code.sf.net/p/ |
URI: ssh://username@git.code.sf.net/p/arianne/stendhal |
||
Host: git.code.sf.net |
Host: git.code.sf.net |
||
Repository path: /p/ |
Repository path: /p/arianne/stendhal |
||
Protocol: "git" (for anonymous) or "ssh" (for privileged). |
Protocol: "git" (for anonymous) or "ssh" (for privileged). |
||
Port: Can be left blank. |
Port: Can be left blank. |
||
| Line 157: | Line 125: | ||
# Under the Stendhal root folder select all the .jar files in libs and press OK. |
# Under the Stendhal root folder select all the .jar files in libs and press OK. |
||
# Now press "Apply" to save the configuration or "Run" to save and run it. |
# Now press "Apply" to save the configuration or "Run" to save and run it. |
||
==Switching from pserver to extssh== |
|||
If you need to switch from anonymous read-only access to read/write, follow these |
|||
instructions. |
|||
(based on clues at http://blog.maestropublishing.com/changing-cvs-username-and-password-in-an-ecli) |
|||
# Window -> Show View -> Other |
|||
# Open up CVS, and double click on "CVS Repositories". A new tab will show up, named CVS Repositories |
|||
# Right click on the arianne line, and select Properties |
|||
# Change Connection Type to extssh |
|||
# Set User and Password to your sourceforge user id and password |
|||
# Click Apply. Eclipse will take a few minutes to update attributes. |
|||
After that, test by trying another CVS Synchronize. The first time, you will probably get a dialog about the server certificate. |
|||