==com.perforce.reviewer.*== ===About This Project=== ====Content==== {{DepotPath|//guest/david_markley/reviewer/|Source}}, {{DepotFile|//public/perforce/utils/reviewd/reviewer/dist/docs/index.html|documentation}}, and {{DepotFile|//public/perforce/utils/reviewd/reviewer/dist/reviewer.jar|JAR}} for the Perforce Java Reviewer, a Java API-based extensible perforce server changelist reviewer. The package provide a Reviewer class and a ChangeListener interface. The Reviewer class monitors changes submitted to the perforce server and calls the appropriate ChangeListener implementation. A default mailer implementation is included. ====Curator==== David Markley. Please email [mailto:plusdavid@yahoo.com plusdavid@yahoo.com] if you have submitted contributions you'd like published, if you have ideas for enhancement, or if you have preferences among the potential enhancements listed below. ====Getting Started==== The default action taken on each changelist is to send e-mail to those users who's Reviews specification matches the current change. The e-mail sent out will contain both a text-only and HTML version of the information. This has been very useful for including links to additional information. The format of the message can be modified in the {{DepotFile|//public/perforce/utils/reviewd/reviewer/dist/docs/com/perforce/reviewer/doc-files/reviewer.conf|configuration file}}. To run the reviewer you must have the [[http://java.sun.com/products/javamail JavaMail]] and [[http://java.sun.com/products/javabeans/glasgow/jaf.html Activation]] packages from Sun. When you have downloaded them, make sure mail.jar, activation.jar, and p4.jar (from the [[Perforce Java API]]) are in the same directory as the {{DepotBrief|//public/perforce/utils/reviewd/reviewer/dist/reviewer.jar}} You will need to create a counter that the reviewer will use to monitor changes submitted to the perforce server. The default name the reviewer will use is 'review'. Make sure that the value of this counter is set to the current value of the 'change' counter. If you do not do this, be prepared to face angry users when they receive e-mail for every change in your server! To create and set the counter, you should execute the following steps: % p4 counters change = 1669 job = 21 journal = 46 % p4 counter review 1669 Counter review set. % p4 counters change = 1669 job = 21 journal = 46 review = 1669 Notice that the value for the 'change' counter is used to set the 'review' counter. Before running the reviewer, you will need to modify its {{DepotFile|//public/perforce/utils/reviewd/reviewer/dist/docs/com/perforce/reviewer/doc-files/reviewer.conf|configuration file}}. That file contains documenation on the each of the parameters that can be specified. Save the file to /etc and modify it to fit your local environment. As part of the reviwer.jar file, this application can be started on the command line with Java 1.2 or better using the format: java -jar reviewer.jar /etc/reviewer.conf & The {{DepotFile|//public/perforce/utils/reviewd/reviewer/dist/docs/com/perforce/reviewer/doc-files/reviewer.conf|configuration file}} is the only argument accepted on the command line. This file specifies the Perforce environment and how each changelist is handled. ===Source Files=== Click {{DepotPath|//guest/david_markley/reviewer/|here}} to access source files by David Markley. ===JAR File=== Click {{DepotFile|//public/perforce/utils/reviewd/reviewer/dist/reviewer.jar|here}} for the Java Archive File (JAR File). ===API Documentation=== Click {{DepotFile|//public/perforce/utils/reviewd/reviewer/dist/docs/index.html|here}} for Package com.perforce.reviewer Documentation. ===P4Package Project=== Click [[Perforce Java API|here]] for the P4Package Java API Project. ===LICENSE.TXT=== Click {{DepotFile|//public/perforce/utils/reviewd/reviewer/dist/docs/com/perforce/reviewer/doc-files/LICENSE.TXT|here}} for the license text. ===Project Updates=== {| cellspacing=0 |- |'''Date''' |'''Update''' |- class=zebra |April 23, 2002 |Initial publication of the Java Reviewer. |- |August 12, 2002 | *Added support for jobs fixed. *Corrected problems with missing formats in the configuration file. |} [[Category:Perforce review tools]] [[Category:Java]]