maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: maven-components/maven-core/src/main/java/org/apache/maven/execution/project MavenProjectExecutionRequestHandler.java
Date Fri, 24 Dec 2004 20:55:54 GMT
jvanzyl     2004/12/24 12:55:54

  Modified:    maven-core/src/main/java/org/apache/maven/execution/project
                        MavenProjectExecutionRequestHandler.java
  Log:
  
  
  Revision  Changes    Path
  1.4       +5 -17     maven-components/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java
  
  Index: MavenProjectExecutionRequestHandler.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MavenProjectExecutionRequestHandler.java	24 Dec 2004 20:51:45 -0000	1.3
  +++ MavenProjectExecutionRequestHandler.java	24 Dec 2004 20:55:54 -0000	1.4
  @@ -20,38 +20,26 @@
       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() )
           {
  
  
  

Mime
View raw message