org.jenkinsci.plugins.dtkit.service
Class DTKitReportProcessingService

java.lang.Object
  extended by org.jenkinsci.plugins.dtkit.service.DTKitReportProcessingService
All Implemented Interfaces:
Serializable

public class DTKitReportProcessingService
extends Object
implements Serializable

Author:
Gregory Boissinot
See Also:
Serialized Form

Constructor Summary
DTKitReportProcessingService()
           
 
Method Summary
 boolean checkIfFindsFilesNewFiles(DTKitBuilderToolInfo DTKitBuilderToolInfo, List<String> files, File workspace)
          Checks if all the finds files are new file
 List<String> findReports(DTKitBuilderToolInfo dTKitBuilderToolInfo, File parentPath, String pattern)
          Gets all reports from the given parent path and the pattern.
 File getCurrentReport(File root, String name)
          Gets a file from a root file and a name
 boolean isEmptyPattern(String pattern)
          Tests if the pattern is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTKitReportProcessingService

public DTKitReportProcessingService()
Method Detail

isEmptyPattern

public boolean isEmptyPattern(String pattern)
Tests if the pattern is empty.

Parameters:
pattern - the given pattern of the current test tool
Returns:
true if empty or blank, false otherwise

findReports

public List<String> findReports(DTKitBuilderToolInfo dTKitBuilderToolInfo,
                                File parentPath,
                                String pattern)
Gets all reports from the given parent path and the pattern.


checkIfFindsFilesNewFiles

public boolean checkIfFindsFilesNewFiles(DTKitBuilderToolInfo DTKitBuilderToolInfo,
                                         List<String> files,
                                         File workspace)
Checks if all the finds files are new file

Parameters:
DTKitBuilderToolInfo - the wrapped object
files - the file list
workspace - the root location of the file list
Returns:
true if all files are new, false otherwise

getCurrentReport

public File getCurrentReport(File root,
                             String name)
Gets a file from a root file and a name

Parameters:
root - the root path
name - the filename
Returns:
the current file


Copyright © 2004-2012. All Rights Reserved.