Project

General

Profile

Actions

IntelliJ z2 plugin » History » Revision 14

« Previous | Revision 14/26 (diff) | Next »
Udo Offermann, 09.05.2014 15:05


IntelliJ z2 plugin

The z2-plugin for IntelliJ IDEA simplifies development with the z2-environment.
The following features are supported as of version 1.0:

Installation

TODO

Prerequisites

The IntelliJ z2-plugin requires a certain project layout. The z2-repositories should be checked out directly beneath the project folder
(i.e. as siblings of the .idea folder). You have to checkout at least z2-core (e.g. z2-base.core) and the repository containing the modules
you want to work with (let's call it "modules"). If you are using Git you must not necessarily clone z2-base.core and z2-addons etc. -
however if you are using subversion it might be easier to check out the whole trunk making it easier to update the sources with one command.

The important point is that the project structure should look like this:

.../my-project
     /modules
       /my-module-A
         ...
       /my-web-app-X
         ...
       /my-web-app-Y
         ...
     /z2-base.core
      ...

Where my-module-A and my-web-app-* are arbitrary z2-modules.

Note that this is slightly different to the Eclipse approach when working with subversion. In Eclipse it's much easier to checkout a project from subversion into
the workspace (note the an Eclipse project is more or less on the same level than an IntelliJ module). So in Eclipse you checkout projects and delete them on demand
(after you committed your changes). In IntelliJ you map and unmap modules into the IDE which is similar to the Eclipse-Git approach.

This means that all checked out repositories automatically belong to the z2 dev-repository. Of course their module remain inactive as long as they are unarmed.

Preferences

The z2-plugin preferences can be found at Project-Settings -> z2-Environment. The typically development settings like host-name=localhost, port=8080, user=z* and password=z are set by default.
Once a z2-environment is up and running the settings can be verified using "Test connection...".

The field "z2 Home Directory" must point to the folder where the z2-core is installed. This location can be chosen by the file picker dialog or by "Search z2-Home" button.
The latter one searches the directory structure within your IntelliJ project folder for a valid z2-Home location. The z2-Home location defines which z2-environment will be started when
launching the z2-environment from the IDE.

Launching

Once the z2-Home is defined, the z2-environment can be launched from the IDE: Select Tools -> Launch z2-environment....
This will start the z2-environment on your local machine using your local OS JDK (not the one defined in IntelliJ). Beside
the standard z2-Swing window the server output is logged inside an IntelliJ tool window (see View -> Tool Windows -> z2-environment).
Logs from the z2-server are displayed in red text color while output from the z2-plugin is displayed in blue.

Managing z2-modules

z2-sync

z2 dependency resolution

Arming modules

z2-Module wizard

z2-Properties editor

Updated by Udo Offermann almost 10 years ago · 14 revisions