o Polished code

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@804150 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-08-14 10:02:13 +00:00
parent 044f6fb408
commit 988246330f
1 changed files with 6 additions and 6 deletions

View File

@ -321,12 +321,6 @@ public class DefaultPluginManager
Mojo mojo = null; Mojo mojo = null;
String goalExecId = goalName;
if ( mojoExecution.getExecutionId() != null )
{
goalExecId += " {execution: " + mojoExecution.getExecutionId() + "}";
}
ClassRealm pluginRealm = getPluginRealm( session, mojoDescriptor.getPluginDescriptor() ); ClassRealm pluginRealm = getPluginRealm( session, mojoDescriptor.getPluginDescriptor() );
ClassRealm oldLookupRealm = container.getLookupRealm(); ClassRealm oldLookupRealm = container.getLookupRealm();
ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
@ -369,6 +363,12 @@ public class DefaultPluginManager
} }
catch ( ComponentLifecycleException e ) catch ( ComponentLifecycleException e )
{ {
String goalExecId = goalName;
if ( mojoExecution.getExecutionId() != null )
{
goalExecId += " {execution: " + mojoExecution.getExecutionId() + "}";
}
logger.debug( "Error releasing mojo for: " + goalExecId, e ); logger.debug( "Error releasing mojo for: " + goalExecId, e );
} }
} }