How to Build z2 Base » History » Version 1
Henning Blohm, 22.03.2021 10:04
1 | 1 | Henning Blohm | h1. How to Build z2 Base |
---|---|---|---|
2 | |||
3 | Starting with z2 v2.6 the z2-Environment comes as a completely self-contained package containing the z2-base components (in particular including Jetty) so that you do not need to setup online copies of z2-base.base unless you plan on patching those components regularly. |
||
4 | |||
5 | In order to build the distribution all you need is |
||
6 | |||
7 | * The required min. Java version (see [[Java Version Requirements]]) |
||
8 | * A somewhat up-to-date ANT installation (see https://ant.apache.org/) |
||
9 | |||
10 | |||
11 | In order to build and try out for development create a workspace somewhere and |
||
12 | |||
13 | h3. 1. Clone z2-core |
||
14 | |||
15 | <pre><code class="bash"> |
||
16 | git clone https://www.z2-environment.net/git/z2-core |
||
17 | </code></pre> |
||
18 | |||
19 | Note: |
||
20 | |||
21 | * If you do not want to build @master@ switch branches accordingly. |
||
22 | * The build will clone the @z2-base.base@ to include it in the distribution. Before packaging, the build will attempt to checkout the same branch (by name) that is checked out in @z2-core@ |
||
23 | |||
24 | h3. 2. Build |
||
25 | |||
26 | Run |
||
27 | |||
28 | <pre><code class="bash"> |
||
29 | cd z2-core/package |
||
30 | ant |
||
31 | </code></pre> |
||
32 | |||
33 | After that: |
||
34 | |||
35 | * A fresh distribution is at @gen/dist@ |
||
36 | |||
37 | h3. 3. Run |
||
38 | |||
39 | You can start the just build distribution by running |
||
40 | |||
41 | <pre><code class="bash"> |
||
42 | ./gui.sh |
||
43 | </code></pre> |
||
44 | |||
45 | h3. 4. Alternative Builds for Distribution |
||
46 | |||
47 | If you want to build an archive, run either |
||
48 | |||
49 | <pre><code class="bash"> |
||
50 | ant build_release_candidate |
||
51 | </code></pre> |
||
52 | |||
53 | to create an archive whose name contains the branch name and a timestamp or |
||
54 | |||
55 | <pre><code class="bash"> |
||
56 | ant build_release |
||
57 | </code></pre> |
||
58 | |||
59 | to create an archive whose name contains the branch name. |