Marauroa on Eclipse: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Monsterdhal m beautification |
imported>Hendrik Brummermann clean up of instructions for really old versions of Eclipse |
||
| (13 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
== Get Java == |
|||
== 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> |
|||
* If you can play Stendhal, you already have Java and can skip this step. |
|||
== Getting Marauroa Source from Git == |
|||
* If you do not have java installed, please download it https://java.com<br> (if you are on Linux, use your packet manager) |
|||
Once installed the Eclipse EGit software you can proceed preparing Eclipse for your sourceforge git access. |
|||
== 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 30: | Line 22: | ||
* Click New Entry and enter |
* Click New Entry and enter |
||
Key: user.name |
Key: user.name |
||
Value: <your |
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 |
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 91: | Line 60: | ||
== See also == |
== See also == |
||
[[ |
[[Stendhal on Eclipse]]<br/> |
||
[[ |
[[Arianne Source Code Repositories]] |
||
[[Category:Marauroa]] |
[[Category:Marauroa]] |
||