net.sourceforge.cruisecontrol.publishers
Class OnSuccessPublisher

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

public class OnSuccessPublisher
extends ConditionalPublisher

Executes any nested publishers if and only if the build was successful

See Also:
Serialized Form

Constructor Summary
OnSuccessPublisher()
           
 
Method Summary
 boolean shouldPublish(org.jdom.Element log)
          Determines if the nested publishers should be executed.
 
Methods inherited from class net.sourceforge.cruisecontrol.publishers.ConditionalPublisher
add, publish, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnSuccessPublisher

public OnSuccessPublisher()
Method Detail

shouldPublish

public boolean shouldPublish(org.jdom.Element log)
Description copied from class: ConditionalPublisher
Determines if the nested publishers should be executed. This method must be implemented by all derived classes.

Specified by:
shouldPublish in class ConditionalPublisher
Parameters:
log - The build log
Returns:
true if the nested publishers should be executed, false otherwise