Create a loginfo trigger file

Here's now to create the loginfo trigger file.

  1. Check out the module CVSROOT from the CVS repository. The CVSROOT module is automatically created in all new CVS repositories, and contains the verifymsg and loginfo files. When created, the files contain only comments.
  2. Begin modifying the file by inserting ALL followed by a tab. This enables CollabNet TeamForge to see all modules in the repository.
  3. Modify the path to your Java home directory as in this example and add it to the file, followed by a single space.
    Example Modification
    /usr/local/java/j2sdk1.4.1_01/bin/java -cp Replace /usr/local/java/j2sdk1.4.1_01/ with the directory in which you have installed Java.
  4. Modify the paths to the .jar files as shown here, then add them to the file separated by colons.
    Examples Modifications
    /yourdirectory/sourceforge_home/lib/saaj.jar /yourdirectory/sourceforge_home/lib/axis-1.1rc1-va.jar /yourdirectory/sourceforge_home/lib/saturn.jar /yourdirectory/sourceforge_home/lib/jaxrpc.jar /yourdirectory/sourceforge_home/lib/externalintegration.jar /yourdirectory/sourceforge_home/lib/commons-discovery.jar /yourdirectory/sourceforge_home/lib/commons-logging.jar /yourdirectory/sourceforge_home/lib/log4j-1.2.8.jar Replace /yourdirectory/ with the directory in which you have installed CollabNet TeamForge .
  5. Modify the parameters as follows:
    Example Modification
    -Dintegration.name=exsy1001 Replace exsy1001 with the ID of your SCM server integration with CollabNet TeamForge .
    Note: To find the ID, click Admin > Integrations > Integration Name. The ID appears at the end of the URL.
    -Dcvs.cvsroot=$CVSROOT No change
    -Dappserver.url=http://localhost:8080/ce-soap60/services/ScmListener Replace localhost with the name of your machine running CollabNet TeamForge .
    Note: If needed, replace 8080 with your SOAP server port.
    -Dcvs.username=$USER No change
    -Dlog4j.configuration=file:/yourdirectory/sourceforge_home/etc/externalintegration/log4j.xml Replace /yourdirectory/ with the directory in which you have installed CollabNet TeamForge .
    -Dexternalintegration.triggers.log.dir=/tmp No change
  6. Add the following Java class containing the body of the trigger.
    com.vasoftware.sf.externalintegration.triggers.cvstriggers.LogInfo
                            %{sVv}
  7. Check your file against the completed example shown on Completed loginfo trigger file.
  8. When you are finished, check the modified file back into your CVS repository. If you have not already done so, repeat the process for the verifymsg trigger file.
    Note: If you make an error in the file, commits made to the repository will not fail, but you will receive error messages.