Project

General

Profile

Sample-groovy-in-Z2 » History » Version 4

Udo Offermann, 08.04.2013 16:45

1 2 Udo Offermann
h1. Sample Groovy in Z2
2 3 Udo Offermann
3
h2. Prerequisites
4
5
All you need is a JDK 6 distribution as described in [[Step_2_-_Install_and_run_in_5_minutes]]. 
6
7
h2. Setting up the sample
8
9
There is no further pre-requisite to running this sample, and you may proceed as described in [[How to run a sample]]. Here's the really fast version:
10
11
<pre><code class="ruby">
12
mkdir install
13
cd install 
14
git clone -b master http://git.z2-environment.net/z2-base.core
15
git clone -b master http://git.z2-environment.net/z2-samples.groovy
16
17
# on Linux / Mac OS:
18
cd z2-base.core/run/bin
19
./gui.sh
20
21
# on Windows:
22
cd z2-base.core\run\bin
23
gui.bat
24
</code></pre>
25 4 Udo Offermann
26
The first time you launch the sample will take a while. Watch the log output and keep an eye out for the following lines:
27
<pre>
28
</pre>
29
30
If you want to inspect the code using Eclipse, please create a workspace in install (i.e. @install/workspace@) and import the Git repositories and the following  projects into your workspace: _core_ from z2-base.core, _environemnt_ and _com.zfabrik.samples.groovy.web_ from z2-samples.groovy (see also [[Step_3_-_First_steps_with_Z2_on_Git|First steps]]).