Create a modified verifymsg trigger file

Here's how to modify the verifymsg 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 .* 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 indicated below. 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 in the following table. 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:
    Examples Modifications
    -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 is 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 . 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.VerifyMessage
  7. Check your file against the completed example shown on Completed verifymsg trigger file.
  8. Check the modified file back into your CVS repository.
  9. If you have not already done so, repeat the process for the loginfo trigger file.
Note: If you make an error in the file and check it back into your CVS repository, all commits made to the repository will fail. To correct the file, you cannot simply check it out and fix it. You must fix it on the repository. After fixing the file on the repository, you must then check it out, fix it again, then check it back in.