mirror of https://github.com/apache/maven.git
*** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163261 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
47798a5834
commit
a8d5efcfdb
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue