net.sourceforge.cruisecontrol.publishers
Class CMSynergyTaskPublisher

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.publishers.CMSynergyPublisher
      extended bynet.sourceforge.cruisecontrol.publishers.CMSynergyTaskPublisher
All Implemented Interfaces:
Publisher, java.io.Serializable

public class CMSynergyTaskPublisher
extends CMSynergyPublisher

After a successful build, this class copies newly checked in tasks to a given CM Synergy folder.

Author:
Robert J. Smith
See Also:
Serialized Form

Constructor Summary
CMSynergyTaskPublisher()
           
 
Method Summary
 void publish(org.jdom.Element log)
          Define the publishing.
 void setFolderName(java.lang.String folderName)
          Sets the name (or a substring of the name) of the folder which will recieve the new tasks.
 void setFolderNumber(java.lang.String folderNumber)
          The number of the folder which will receive the new tasks.
 void validate()
          Called after the configuration is read to make sure that all the mandatory parameters were specified..
 
Methods inherited from class net.sourceforge.cruisecontrol.publishers.CMSynergyPublisher
getBuildProperties, getCcmExe, getNewTasks, getProject, getSessionFile, getSessionName, setCcmExe, setProject, setSessionFile, setSessionName, shouldPublish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMSynergyTaskPublisher

public CMSynergyTaskPublisher()
Method Detail

setFolderName

public void setFolderName(java.lang.String folderName)
Sets the name (or a substring of the name) of the folder which will recieve the new tasks. This folder must exist within the reconfigure properties of the given project.

Parameters:
folderName - The folder name

setFolderNumber

public void setFolderNumber(java.lang.String folderNumber)
The number of the folder which will receive the new tasks.

Parameters:
folderNumber - The folder number

publish

public void publish(org.jdom.Element log)
             throws CruiseControlException
Description copied from interface: Publisher
Define the publishing.

Parameters:
log - JDOM Element representation of the main cruisecontrol build log
Throws:
CruiseControlException

validate

public void validate()
              throws CruiseControlException
Description copied from interface: Publisher
Called after the configuration is read to make sure that all the mandatory parameters were specified..

Throws:
CruiseControlException - if there was a configuration error.