PR: MNG-721

fix failure times

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@307305 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-10-08 15:37:00 +00:00
parent 7ac27ec84c
commit ce8f50cc0a
1 changed files with 16 additions and 8 deletions

View File

@ -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 );
}
}