How to Build z2 Base¶
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.
In order to build the distribution all you need is
- The required min. Java version (see Java Version Requirements)
- A somewhat up-to-date ANT installation (see https://ant.apache.org/)
In order to build and try out for development create a workspace somewhere and
1. Clone z2-core¶
git clone https://www.z2-environment.net/git/z2-core
- If you do not want to build
masterswitch branches accordingly.
- The build will clone the
z2-base.baseto include it in the distribution. Before packaging, the build will attempt to checkout the same branch (by name) that is checked out in
cd z2-core/package ant
- A fresh distribution is at
You can start the just build distribution by running
4. Alternative Builds for Distribution¶
If you want to build an archive, run either
to create an archive whose name contains the branch name and a timestamp or
to create an archive whose name contains the branch name.