hudson.plugins.testabilityexplorer.helpers
Class ReportParseDelegate

java.lang.Object
  extended by hudson.plugins.testabilityexplorer.helpers.ReportParseDelegate
All Implemented Interfaces:
ParseDelegate, java.io.Serializable

public class ReportParseDelegate
extends java.lang.Object
implements ParseDelegate

Scans for report files using the specified reportFilenamePattern. Any report files found that way, will be parsed and turned into Statistic's.

Author:
reik.schatz
See Also:
Serialized Form

Constructor Summary
ReportParseDelegate(java.lang.String reportFilenamePattern, int threshold)
           
 
Method Summary
protected  void flagBuild(boolean successful, BuildProxy build)
           
protected  java.util.List<hudson.FilePath> getFilesToParse(BuildProxy build)
          Returns a list of FilePath's that are supposed to be parsed.
 boolean perform(BuildProxy build, hudson.model.BuildListener listener)
          Uses the reportFilenamePattern in this ReportParseDelegate to look for report files which will then be delegated for parsing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportParseDelegate

public ReportParseDelegate(java.lang.String reportFilenamePattern,
                           int threshold)
Method Detail

perform

public boolean perform(BuildProxy build,
                       hudson.model.BuildListener listener)
Uses the reportFilenamePattern in this ReportParseDelegate to look for report files which will then be delegated for parsing.

Specified by:
perform in interface ParseDelegate

flagBuild

protected void flagBuild(boolean successful,
                         BuildProxy build)

getFilesToParse

protected java.util.List<hudson.FilePath> getFilesToParse(BuildProxy build)
Returns a list of FilePath's that are supposed to be parsed.

Parameters:
build - the BuildProxy
Returns:
list of FilePath objects or empty list


Copyright © 2008. All Rights Reserved.