From 5e04e91c656d73c99d0521e150003c211bd24217 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Mon, 3 Sep 2007 06:13:53 +0000 Subject: [PATCH] defined another parse method. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4605 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/tasks/junit/TestResult.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/tasks/junit/TestResult.java b/core/src/main/java/hudson/tasks/junit/TestResult.java index e05182ab56..41f7ec9a85 100644 --- a/core/src/main/java/hudson/tasks/junit/TestResult.java +++ b/core/src/main/java/hudson/tasks/junit/TestResult.java @@ -60,9 +60,17 @@ public final class TestResult extends MetaTabulatedResult { /** * Collect reports from the given {@link DirectoryScanner}, while - * filtering out all files that were created before the given tiem. + * filtering out all files that were created before the given time. */ public TestResult(long buildTime, DirectoryScanner results) throws IOException { + parse(buildTime, results); + } + + /** + * Collect reports from the given {@link DirectoryScanner}, while + * filtering out all files that were created before the given time. + */ + public void parse(long buildTime, DirectoryScanner results) throws IOException { String[] includedFiles = results.getIncludedFiles(); File baseDir = results.getBasedir();