Marauroa on Eclipse: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann m moved MarauroaonEclipse to Marauroa on Eclipse |
imported>Hendrik Brummermann clean up of instructions for really old versions of Eclipse |
||
| (53 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Navigation for Marauroa Top|Internals}} |
|||
==First Steps== |
|||
{{Navigation for Marauroa Developers}} |
|||
<ol> |
|||
<li> First of all open the view called Package Explorer.</li> |
|||
<li> "New Project..."</li> |
|||
<li> "CVS" -> "Project from CVS" </li> |
|||
<li> Get marauroa from CVS. (Connection type: pserver, User: anonymous, Password - leave blank, Host:arianne.cvs.sourceforge.net, Repository: /cvsroot/arianne module marauroa)</li> |
|||
<pre> |
|||
file-> new -> project -> project-> from cvs |
|||
click next |
|||
check "create new repository" |
|||
click next |
|||
== Get Java == |
|||
host : arianne.cvs.sourceforge.net |
|||
repository path : /cvsroot/arianne |
|||
user : anonymous |
|||
connection Type: pserver |
|||
click next |
|||
* If you can play Stendhal, you already have Java and can skip this step. |
|||
check "use an existing module" |
|||
* If you do not have java installed, please download it https://java.com<br> (if you are on Linux, use your packet manager) |
|||
click directory: marauroa |
|||
click next |
|||
== Get Eclipse== |
|||
checkout as a project configured using the new project wizard |
|||
click next |
|||
* Go to https://www.eclipse.org/downloads/ |
|||
click finish (ignoring the rest) |
|||
* Download: "Eclipse IDE for Java Developers" |
|||
* Unzip the download an run Eclipse |
|||
* In Eclipse, close the "Welcome" window |
|||
The next dialog says 'New Project' |
|||
== Git-configuration in Eclipse == |
|||
select a wizard: java project and click next |
|||
<pre> |
|||
project Name: marauroa ( or whatever you like to call it ) |
|||
* First you need to tell Git about yourself: |
|||
make sure in jre a java version 1.5 or higher is selected |
|||
Window -> Preferences -> Team -> Git -> Configuration |
|||
click finish |
|||
* 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) |
|||
</pre> |
</pre> |
||
<!--<li> Right click on your project folder and select "Properties" in the context menu.</li> |
|||
<li> Then select "Java Build Path" on the left side of the dialog box.</li> |
|||
<li> Now remove all existing folders from source path and add the two source folders 'src' and 'tests' by clicking on the "Add Folder..." button</li> |
|||
<pre> |
|||
source folder #1: |
|||
marauroa/src |
|||
Included:(All) |
|||
Excluded:(None) |
|||
Native library location: (None) |
|||
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. |
|||
source folder #2: |
|||
marauroa/tests |
|||
Included:(All) |
|||
Excluded:(None) |
|||
Native library location: (None) |
|||
=== Get Code === |
|||
source folder #2: |
|||
<pre> |
|||
marauroa/functional_tests |
|||
* File -> Import... -> Git -> Projects from Git -> Next |
|||
Included:(All) |
|||
* Clone... |
|||
Excluded:(None) |
|||
URI: ssh://USERNAME@arianne.git.sourceforge.net/gitroot/arianne/marauroa.git |
|||
Native library location: (None) |
|||
(changing USERNAME to your own source forge username) |
|||
User: <your sourceforge username> |
|||
default output folder: marauroa/classes |
|||
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 |
|||
</pre> |
</pre> |
||
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] |
|||
<li> On the "Libraries" tab: click on the "Add JARs" button and select all the files in stendhal/lib</li> --> |
|||
</ol> |
|||
Eclipse should be able to compile the source code now. There could be a little yellow sign (signalling warning messages) before your project folder but there must not be red X (error messages). The package explorer should now display the "src" folder below the root folder with a different icon, the icon is like a small grid. |
|||
==Trouble Shooting== |
== Trouble Shooting == |
||
menu Windows | Preferences | Java | Installed JREs |
menu Windows | Preferences | Java | Installed JREs |
||
* there should be at least one entry with a valid JAVA_HOME path |
* there should be at least one entry with a valid JAVA_HOME path |
||
== See also == |
== See also == |
||
[[Stendhal on Eclipse]]<br/> |
|||
[[Arianne Source Code Repositories]] |
|||
[[StendhalonEclipse]] |
|||
[[Category:Marauroa]] |
[[Category:Marauroa]] |
||
{{#breadcrumbs: [[Marauroa]] | [[Navigation for Marauroa Developers|Internals]] | [[Marauroa on Eclipse|Marauroa on Eclipse]] }} |
|||
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 }}