Marauroa on Eclipse: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
No edit summary
imported>Hendrik Brummermann
clean up of instructions for really old versions of Eclipse
 
(40 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{Navigation for Marauroa Developers}}
{{Navigation for Marauroa Developers}}


==First Steps==
<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


== Get Java ==
check "create new repository"
click next


* If you can play Stendhal, you already have Java and can skip this step.
host : arianne.cvs.sourceforge.net
* If you do not have java installed, please download it https://java.com<br> (if you are on Linux, use your packet manager)
repository path : /cvsroot/arianne
user : anonymous
connection Type: pserver
click next


== Get Eclipse==
check "use an existing module"
click directory: marauroa
click next


* Go to https://www.eclipse.org/downloads/
checkout as a project configured using the new project wizard
* Download: "Eclipse IDE for Java Developers"
click next
* Unzip the download an run Eclipse
* In Eclipse, close the "Welcome" window


click finish (ignoring the rest)


== Git-configuration in Eclipse ==
The next dialog says 'New Project'
<pre>
select a wizard: java project and click next
* First you need to tell Git about yourself:
project Name: marauroa ( or whatever you like to call it )
Window -> Preferences -> Team -> Git -> Configuration
make sure in jre a java version 1.5 or higher is selected
* Click New Entry and enter
click finish
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]] }}