Step 3 - First development steps old » History » Version 8
Udo Offermann, 11.09.2012 13:03
1 | 1 | Redmine Admin | h1. First steps with z2 |
---|---|---|---|
2 | |||
3 | 3 | Udo Offermann | [[How_to_install_z2_v21|prev]] :: [[Wiki|home]] |
4 | 1 | Redmine Admin | |
5 | 2 | Redmine Admin | h2. First steps with the z2-environment |
6 | 1 | Redmine Admin | |
7 | 8 | Udo Offermann | on the previous page you saw [[How_to_install_z2_v21|How to install a z2 system]] and start it. Actually this is already enough to run a productive site (of course a productive site would be combined with a web server like Apache). |
8 | 3 | Udo Offermann | As the next step you will learn how to do the first development steps using the "Eclipse-IDE":http://www.eclipse.org/ (one of Galileo, Helios, Indigo or Juno is fine). |
9 | 1 | Redmine Admin | |
10 | 3 | Udo Offermann | We recommend to keep the repositories and workspace close together. Change back to the "z2-base" path (@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: |
11 | |||
12 | <pre> |
||
13 | :bin$ cd ../../.. |
||
14 | :z2-base$ mkdir workspace |
||
15 | :z2-base$ ls -l |
||
16 | total 0 |
||
17 | 0 drwxr-xr-x 2 mr_x staff 68 7 Sep 16:34 workspace |
||
18 | 0 drwxr-xr-x 12 mr_x staff 408 7 Sep 15:11 z2-base.core |
||
19 | |||
20 | :z2-base$ |
||
21 | </pre> |
||
22 | |||
23 | Now start Eclipse and choose @.../z2-base/workspace@ as your workspace folder. |
||
24 | |||
25 | 4 | Udo Offermann | The z2-environment provides an Eclipse plug-in called "Eclipsoid" that enables to conveniently develop z2 applications. |
26 | 3 | Udo Offermann | Developing modular software requires that the IDE can resolve the dependencies between the single project. |
27 | So either you import all projects into your workspace or you live with the red x-markers. The third option is that someone |
||
28 | resolves the dependencies for you - this is what the Eclipsoid does. This way you can checkout and focus on one project while |
||
29 | 1 | Redmine Admin | the Eclipsoid plug-in provides the transitive closure of all required prjects and libraries. There are other features that are |
30 | explained in more details on the [[Eclipsoid]] wiki pages. |
||
31 | 4 | Udo Offermann | |
32 | h2. Installation of the Eclipsoid plug-in |
||
33 | |||
34 | 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]]). |
||
35 | 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 |
||
36 | 5 | Udo Offermann | (the field labled "Work with"): |
37 | 1 | Redmine Admin | |
38 | 7 | Udo Offermann | bq. !Install_Eclipsoid.png! |
39 | 5 | Udo Offermann | |
40 | Complete the installation wizard (you can speed up the installation procedure by deselecting "Contact all update sites during install...") and restart Eclipse. |
||
41 | Now you should see a new menu entry labled "z2-Environment" and two new icons: |
||
42 | |||
43 | 6 | Udo Offermann | >!Eclipsoid_menu_entries_and_icons.png! |
44 | 3 | Udo Offermann | |
45 | [[How_to_install_z2_v21|prev]] :: [[Wiki|home]] |