Project

General

Profile

FAQ » History » Version 1

Henning Blohm, 08.02.2015 17:32

1 1 Henning Blohm
h1. FAQ
2
3
h2. Why is it not possible to arm my z2 project in Eclipse?
4
5
If the Eclipse project does not show a little Z icon as decoration, it is not even recognized as a z2 project. To become a z2 project, the specific entry 
6
7
<pre><code class="xml">
8
<classpathentry kind="con" path="ZFabrik.Eclipsoid"/>
9
</code></pre>
10
11
has to be present in the *.classpath* file that is located in the root folder of the project. The right-click context menu of the Eclipsoid plugin offers the option to "Transform into z2 project", which is nothing but modifying the *.classpath* file accordingly.
12
13
Arming a z2 module (note that z2 _modules_ are simply eclipse _projects_) is nothing but adding a file called *LOCAL* into its root folder. The Eclipsoid plugin will show the Z decoration with a little green halo for armed projects and without otherwise.
14
15
h2. Why are my z2 development projects not picked up by z2?
16
17
By definition, all modules recognized by z2 are loaded from _component repositories_. One particular implementation, the so-called _dev repository_ is particularly useful for development scenarios. In particular this implementation
18
19
* can be configured to discover modules in a number of local file system locations,
20
* loads modules with high priority (and hence overlays remote versions of modules of the same name),
21
* is safe to use during development as it will snapshot module versions at synchronization time.
22
23
In order to work the following prerequisites must be met:
24
25
* The dev repository must be running. Make sure to list the target state *org.z2env.dev.shared/ready* when running z2. 
26
27
You should indeed see logging output like this 
28
29
<pre>
30
INFO: Starting component repo component:org.z2env.dev.repo/devRepo,repo:org.z2env.dev.repo/devRepo,prio:750,mode:strict, workspaces (1): [/home/hb/org.z2env.svn]
31
</pre>
32
33
* Your projects must be located one or two levels deep on the search path of the dev repo
34
35
By default the dev repository will search for armed modules (see [[FAQ#Why are my z2 development projects not picked up by z2?]]) in the parent folder of the z2 <home> location (i.e. modules will be siblings or children of siblings of the <home> folder). Using the system property 
36
37
*org.z2env.dev.local.workspace*
38
39
you can specify a comma-separated list of file system locations to use instead.