net.sourceforge.cruisecontrol.publishers
Class OnFailurePublisher

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

public class OnFailurePublisher
extends ConditionalPublisher

Executes any nested publishers if and only if the build failed

See Also:
Serialized Form

Constructor Summary
OnFailurePublisher()
           
 
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

OnFailurePublisher

public OnFailurePublisher()
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