Project

General

Profile

Step 3 - First steps with Z2 on Git » History » Version 4

Udo Offermann, 10.09.2012 16:42

1 1 Udo Offermann
h1. First steps with z2 v2.1
2
3 2 Udo Offermann
[[How_to_install_z2_v21|prev]] :: [[Z2_v21|home]]
4 1 Udo Offermann
5 4 Udo Offermann
h2. Prerequisites
6
7
You need a cloned z2-base.core repository as described on the [[How_to_install_z2_v21|previous]] page.
8
Furthermore you need the "Eclipse-IDE":http://www.eclipse.org (one of Galileo, Helios, Indigo or Juno is fine) and the "Egit plg-in:":http://www.eclipse.org/egit. 
9
10 1 Udo Offermann
h2. First steps with the z2-environment
11
12 4 Udo Offermann
As the next step you will learn how to do the first development steps using Eclipse. Please stop the server before you continue because we will now show you how to start it from inside the Eclipse IDE.
13 3 Udo Offermann
14 4 Udo Offermann
We recommend to keep the repositories and workspace close together. So please go back to the "z2-base" directory (@cd ../../..@, if you are still inside the "run/bin" directory) and create a folder called "workspace" - this will be used as the workspace root for Eclipse:
15 3 Udo Offermann
16
<pre>
17
   :bin$ cd ../../..
18
   :z2-base$ mkdir workspace
19
   :z2-base$ ls -l
20
   total 0
21
   0 drwxr-xr-x   2 mr_x  staff   68  7 Sep 16:34 workspace
22
   0 drwxr-xr-x  12 mr_x  staff  408  7 Sep 15:11 z2-base.core
23
24
   :z2-base$
25 1 Udo Offermann
</pre>
26
27
Now start Eclipse and choose @.../z2-base/workspace@ as your workspace folder.
28 4 Udo Offermann
29
We have to add the core repository to the EGit repositories view. Detailed documentation of how-to work with EGit can be found on the "EGit Wiki pages":http://wiki.eclipse.org/EGit/User_Guide.
30
On the Git repositories view choose "Add an existing local Git repository". In the "Directory" field type in the path to the ".../z2-base" directory. 
31
After hitting "search" the search results should list the _z2-base.core_ repository, click "finish" and the repositories view should look like this:
32
33
34
35 3 Udo Offermann
36
The z2-environment provides an Eclipse plug-in called "Eclipsoid" that enables to conveniently develop z2 applications. 
37
Developing modular software requires that the IDE can resolve the dependencies between the single project. 
38
So either you import all projects into your workspace or you live with the red x-markers. The third option is that someone
39
resolves the dependencies for you - this is what the Eclipsoid does. This way you can checkout and focus on one project while
40
the Eclipsoid plug-in provides the transitive closure of all required prjects and libraries. There are other features that are
41
explained in more details on the [[Eclipsoid]] wiki pages.
42
43
h2. Installation of the Eclipsoid plug-in
44
45
The Eclipsoid plug-in is part of the z2-environment that you cloned 5 minutes ago. So make sure that your local server is up and running (see [[How_to_install_z2_v21|How to install z2]]).
46
Once Eclipse is launched open the software update/installation wizard (in Indigo it's located at "Help/Install New Software...") and use http://localhost:8080/eclipsoid/update as update-site URL
47
(the field labled "Work with"):
48
49
bq. !Install_Eclipsoid.png!
50
51
Complete the installation wizard (you can speed up the installation procedure by deselecting "Contact all update sites during install...") and restart Eclipse. 
52
Now you should see a new menu entry labled "z2-Environment" and two new icons:
53
54
>!Eclipsoid_menu_entries_and_icons.png!
55 2 Udo Offermann
[[How_to_install_z2_v21|prev]] :: [[Z2_v21|home]]