Marauroa on Eclipse: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Monsterdhal m Corrected link to the moved page "Stendhal on Eclipse" |
imported>Hendrik Brummermann clean up of instructions for really old versions of Eclipse |
||
| (9 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 === |
||
Latest revision as of 16:05, 5 July 2015
Get Java
- If you can play Stendhal, you already have Java and can skip this step.
- If you do not have java installed, please download it https://java.com
(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
* First you need to tell Git about yourself: Window -> Preferences -> Team -> Git -> Configuration * Click New Entry and enter Key: user.name Value: <your fullname or your nickname> * Click New Entry again and enter Key: user.email Value: <your email address> (e. g. <your sourceforge username>@users.sourceforge.net)
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.
Get Code
* File -> Import... -> Git -> Projects from Git -> Next * Clone... URI: ssh://USERNAME@arianne.git.sourceforge.net/gitroot/arianne/marauroa.git (changing USERNAME to your own source forge username) User: <your sourceforge username> Password: <your sourceforge password> Store in Secure Store: Select that if you want * If you have trouble at this stage try restarting eclipse and try again * Select all branches if not already selected (fast anyway) -> Next Initial branch: master Remote name: origin (should already be inserted) * Let it import everything * Select the repository you just cloned -> Next * Wizard for project import: Use the New Projects wizard -> Finish * New Project wizard will open * Select Java -> Java Project -> Next * Give it a name (marauroa will do) * The other defaults are okay * Finish
While perferforming the ssh connect you will be asked to accept the fingerprint of the server. Please validate that against the Sourceforge Fingerprint Listing
Trouble Shooting
menu Windows | Preferences | Java | Installed JREs
- there should be at least one entry with a valid JAVA_HOME path
See also
Stendhal on Eclipse
Arianne Source Code Repositories
{{#breadcrumbs: Marauroa | Internals | Marauroa on Eclipse }}