net.sourceforge.cruisecontrol.buildloggers
Class MergeLogger

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.buildloggers.MergeLogger
All Implemented Interfaces:
BuildLogger

public class MergeLogger
extends java.lang.Object
implements BuildLogger

This BuildLogger implementation merges other XML logs into the CruiseControl main log. It can work with either a single file, or a directory. If a directory is specified, then all the XML files in that directory will be merged into the CruiseControl log.


Constructor Summary
MergeLogger()
           
 
Method Summary
 void log(org.jdom.Element buildLog)
          Note: the plugin must be validated before calling this method.
 void setDir(java.lang.String dir)
           
 void setFile(java.lang.String file)
           
 void setPattern(java.lang.String pattern)
          Sets the pattern which the filenames in a directory must match.
 void setRemoveProperties(boolean b)
           
 void validate()
          Called after the configuration is read to make sure that all the mandatory parameters were specified..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeLogger

public MergeLogger()
Method Detail

setFile

public void setFile(java.lang.String file)

setDir

public void setDir(java.lang.String dir)

setPattern

public void setPattern(java.lang.String pattern)
Sets the pattern which the filenames in a directory must match. Default pattern is "*.xml". Invalidates the current filename filter. The filename filter is compiled using compilePattern().

Parameters:
pattern - a valid Jakarta-ORO Glob pattern.

validate

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

Specified by:
validate in interface BuildLogger
Throws:
CruiseControlException - if there was a configuration error.

log

public void log(org.jdom.Element buildLog)
         throws CruiseControlException
Note: the plugin must be validated before calling this method.

Specified by:
log in interface BuildLogger
Parameters:
buildLog - JDOM Element, the actual cruisecontrol build log
Throws:
CruiseControlException

setRemoveProperties

public void setRemoveProperties(boolean b)