From ce8f50cc0a6e4cf8320f652fc92a50225625e246 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Sat, 8 Oct 2005 15:37:00 +0000 Subject: [PATCH] PR: MNG-721 fix failure times git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@307305 13f79535-47bb-0310-9956-ffa450edef68 --- .../lifecycle/DefaultLifecycleExecutor.java | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java index 1367ca1e00..f3909ed359 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java @@ -242,20 +242,24 @@ public class DefaultLifecycleExecutor catch ( MojoExecutionException e ) { // TODO: should this be removed? - handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); + handleExecutionFailure( rm, rootProject, e, task, + System.currentTimeMillis() - buildStartTime ); } catch ( ArtifactResolutionException e ) { // TODO: should this be removed? - handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); + handleExecutionFailure( rm, rootProject, e, task, + System.currentTimeMillis() - buildStartTime ); } catch ( MojoFailureException e ) { - handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); + handleExecutionFailure( rm, rootProject, e, task, + System.currentTimeMillis() - buildStartTime ); } catch ( ArtifactNotFoundException e ) { - handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); + handleExecutionFailure( rm, rootProject, e, task, + System.currentTimeMillis() - buildStartTime ); } } @@ -326,20 +330,24 @@ public class DefaultLifecycleExecutor catch ( MojoExecutionException e ) { // TODO: should this be removed? - handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); + handleExecutionFailure( rm, currentProject, e, task, + System.currentTimeMillis() - buildStartTime ); } catch ( ArtifactResolutionException e ) { // TODO: should this be removed? - handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); + handleExecutionFailure( rm, currentProject, e, task, + System.currentTimeMillis() - buildStartTime ); } catch ( MojoFailureException e ) { - handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); + handleExecutionFailure( rm, currentProject, e, task, + System.currentTimeMillis() - buildStartTime ); } catch ( ArtifactNotFoundException e ) { - handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); + handleExecutionFailure( rm, currentProject, e, task, + System.currentTimeMillis() - buildStartTime ); } }