CollabNet TeamForge Events Examples

What's in this bundle?

The downloadable CTF API sample bundle contains a set of sample event programs. 

______________________________________________________________

Pre-Requisites

These samples programs are as self-contained as they can be. However, you
will need to obtain a java JDK and a copy of the ant build tool for building
the examples. The java JDK should be 1.8 or better and can be downloaded
from http://java.sun.com. The Apache Ant bundle should be version 1.7.0 or
better. Ant can be downloaded from http://ant.apache.org/

______________________________________________________________

Setup

Once you have the JDK and Ant downloaded, you must expand them into a
filesystem location at which you will later refer to them. Assuming you
expanded ant and java into /usr/local, you have to instruct your shell where
they may be found. 

This example is bash shell syntax:

export JAVA_HOME=/usr/java/jdk1.8.0_74
export ANT_HOME=/usr/local/apache-ant-1.7.0

And lastly put both java and ant in your path

export PATH=$PATH:$ANT_HOME/bin:$JAVA_HOME/bin

______________________________________________________________

Building and Running the Sample Programs

In order to build all the sample programs, use the ant build.xml that is 
located in the same directory as this file.

Once the jar is built successfully, ensure ENABLE_UI_FOR_CUSTOM_EVENT_HANDLERS=true 
in your site option and upload the jar using project admin customization link. 

Your event will be fired when the specific event happened in CTF. 

Enjoy the CollabNet TeamForge API!

______________________________________________________________

