GroundWork Developer's Kit (GDK) Development Environment

From GroundWork Developer Kit

Jump to: navigation, search

Contents

[edit] Using the GDK Development Environment

NOTE: Refer to GroundWork Developer's Kit (GDK) and GroundWork Developer's Kit Installation for details about GDK installation.
Use the GDK development environment when you wish to create custom objects, such as portlets. To work efficiently in the GDK development environment, begin by opening three different windows:

[edit] SuperUser Window

In the SuperUser window, type these commands to set the mode:

  1. su
  2. passwd: <<superuser password>>

Then, navigate to the directory that contains the ctlscrpt.sh used to stop and start gwservices:

/usr/local/groundwork/

The figure below displays the commands used in the SuperUser window to stop gwservices
superuser window

[edit] Eclipse Window

Use the Eclipse window to launch and work with Eclipse.

[edit] Launching Eclipse

NOTE: Before launching Eclipse, log in as superuser and change the password of user nagios to nagios. Refer to Changing password for User nagios for details.

In the Eclipse window, type the commands below to launch Eclipse:

  1. ssh -X nagios@localhost
  2. password: nagios
  3. export LD_LIBRARY_PATH=
  4. cd /usr/localhost/groundwork/gdk/tools/eclipse
  5. ./eclipse

The figure below displays the commands to launch Eclipse.
Eclipse window

When launched, the Eclipse logo appears.
Eclipse logo

[edit] Development Window

Use the Development window to deploy custom objects.

For example, if you are deploying a custom portlet written in PHP, type the following commands to login as the nagios superuser, navigate to the sample-php directory, and deploy your custom portlet project:

  1. su nagios
  2. password: nagios
  3. cd /usr/local/groundwork/gdk/monitor-portal/applications/sample-php
  4. maven deploy

The figure below displays the Development window used to deploy a project in the sample-php directory.
Development window

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox