Package org.pitest.maven.report
Class ReportSourceLocator
- java.lang.Object
-
- org.pitest.maven.report.ReportSourceLocator
-
public class ReportSourceLocator extends Object
Determines the directory where the most recent PIT reports are actually located since the value of the timestamedReports parameter could impact where the reports are stored.- Author:
- jasonmfehr
-
-
Constructor Summary
Constructors Constructor Description ReportSourceLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Filelocate(File reportsDirectory, org.apache.maven.plugin.logging.Log log)Determines the directory where the most recent PIT reports are located.
-
-
-
Method Detail
-
locate
public File locate(File reportsDirectory, org.apache.maven.plugin.logging.Log log)
Determines the directory where the most recent PIT reports are located. If timestampedReports is set to true, then the latest reports directory is located and returned. If timestampedReports is set to false, then the provided reportsDirectory parameter is returned. If multiple runs of the plugin have resulted in a combination of a non-timestamped report directory and timestamped reports directories, then the latest of all those directories is returned. SeeTIMESTAMPED_REPORTS_FILE_FILTERfor an explanation of what constitutes a timestamped reports directory;- Parameters:
reportsDirectory-Filerepresenting the directory where non-timestamped reports were written if the plugin's configuration has timestampedReports set to true;log-Logplugin logger for logging debug messages- Returns:
Filerepresenting the directory where the latest PIT reports are located
-
-