From a8d5efcfdb0e31b4c87d467c560f935fc12be0ed Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Fri, 24 Dec 2004 20:55:54 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163261 13f79535-47bb-0310-9956-ffa450edef68 --- .../MavenProjectExecutionRequestHandler.java | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java b/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java index 60be37ad3d..358fbc1743 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java +++ b/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java @@ -20,39 +20,27 @@ public class MavenProjectExecutionRequestHandler public void handle( MavenExecutionRequest request, MavenExecutionResponse response ) throws Exception { - Date start = null; - - Date finish = null; - try { MavenProject project = getProject( ( (MavenProjectExecutionRequest) request ).getPom(), request.getLocalRepository() ); - start = new Date(); + response.setStart( new Date() ); response = lifecycleManager.execute( createSession( request, project ) ); + + response.setFinish( new Date() ); } catch ( Exception e ) { - finish = new Date(); + response.setFinish( new Date() ); response.setException( e ); - response.setStart( start ); - - response.setFinish( finish ); - logError( response ); return; } - finish = new Date(); - - response.setStart( start ); - - response.setFinish( finish ); - if ( response.isExecutionFailure() ) { logFailure( response );