Marauroa on Eclipse: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Monsterdhal
m Added link to the sourceforge fingerprint listing
imported>Hendrik Brummermann
clean up of instructions for really old versions of Eclipse
 
(26 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{Navigation for Marauroa Developers}}
{{Navigation for Marauroa Developers}}


== First Steps (Installing EGit Plugin) ==
In Eclipse check if you have got ''Eclipse EGit'' already installed:
<pre>
* Help -> Install New Software... -> What is already installed?
* Now you should have opened a Window titled "Eclipse Intallation Details".
* Look for Eclipse EGit in the list of installed Software.
</pre>
If you '''don't''' see ''Eclipse EGit'' in that list:
<pre>
* Close (go back to the Window titled "Install") -> Work with: <your Eclipse version>
(e. g. Indigo - http://download.eclipse.org/releases/indigo)
* Into the filter text box type "egit".
* Eclipse EGit should come up (on the Collaboration branch).
* Mark Eclipse EGit by clicking the small box next to it.
* Click Next and follow through clicking Next until finished.
* Restart Eclipse when prompted.
</pre>


== Get Java ==
== Getting Marauroa Source from Git ==
Once installed the Eclipse EGit software you can proceed preparing Eclipse for your sourceforge git access.


* If you can play Stendhal, you already have Java and can skip this step.
=== Configuration ===
* If you do not have java installed, please download it https://java.com<br> (if you are on Linux, use your packet manager)

== Get Eclipse==

* Go to https://www.eclipse.org/downloads/
* Download: "Eclipse IDE for Java Developers"
* Unzip the download an run Eclipse
* In Eclipse, close the "Welcome" window


== Git-configuration in Eclipse ==
<pre>
<pre>
* First you need to tell Git about yourself:
* First you need to tell Git about yourself:
Line 29: Line 22:
* Click New Entry and enter
* Click New Entry and enter
Key: user.name
Key: user.name
Value: <your sourceforge username>
Value: <your fullname or your nickname>
* Click New Entry again and enter
* Click New Entry again and enter
Key: user.email
Key: user.email
Value: <your sourceforge email address> (<your sourceforge username>@users.sourceforge.net)
Value: <your email address> (e. g. <your sourceforge username>@users.sourceforge.net)
</pre>
</pre>


This information is stored in ~/.gitconfig (Linux) or %USERPROFILE%\.gitconfig (Windows) and will be used by Git to identify who did change the history of the repository.
This information is stored in ~/.gitconfig (Linux) or %USERPROFILE%\.gitconfig (Windows) and will be used by Git to identify who did change the history of the repository.

You'll see the location of the file right above the key table in the window you are looking at. Click [Open] and edit it directly in Eclipse. Add the rest of the file as in the example below. (Replace USERNAME with your sourceforge username.)
<pre>
[core]
repositoryformatversion = 0
filemode = true
logallrefupdates = true
autocrlf = false
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
url = ssh://USERNAME@arianne.git.sourceforge.net/gitroot/arianne/marauroa.git
fetch = +refs/heads/*:refs/remotes/origin/*
[user]
name = USERNAME
email = USERNAME@users.sourceforge.net
</pre>
Before going on, you possibly might want to change the default repository folder to be sure the new project will be stored into your Eclipse workspace:
<pre>
* Window -> Preferences -> Team -> Git
Default repository folder: <your Eclipse workspace folder>
</pre>


=== Get Code ===
=== Get Code ===
Line 83: Line 53:
* Finish
* Finish
</pre>
</pre>
While perferforming the ssh connect you will be asked to accept a fingerprint of the server. Please validate that against the [https://sourceforge.net/apps/trac/sourceforge/wiki/SSH%20key%20fingerprints Sourceforge Fingerprint Listing]
While perferforming the ssh connect you will be asked to accept the fingerprint of the server. Please validate that against the [https://sourceforge.net/apps/trac/sourceforge/wiki/SSH%20key%20fingerprints Sourceforge Fingerprint Listing]


== Trouble Shooting ==
== Trouble Shooting ==
Line 90: Line 60:


== See also ==
== See also ==
[[StendhalonEclipse|Stendhal on Eclipse]]<br/>
[[Stendhal on Eclipse]]<br/>
[[Arianne_Source_Code_Repositories|Arianne Source Code Repositories]]
[[Arianne Source Code Repositories]]


[[Category:Marauroa]]
[[Category:Marauroa]]