o Added toString() to ease debugging

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@775311 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-05-15 20:20:32 +00:00
parent d616f1d873
commit 7612c0e020
1 changed files with 13 additions and 0 deletions

View File

@ -102,4 +102,17 @@ public class MojoExecution
{
this.lifecyclePhase = lifecyclePhase;
}
@Override
public String toString()
{
StringBuilder buffer = new StringBuilder( 128 );
if ( mojoDescriptor != null )
{
buffer.append( mojoDescriptor.getId() );
}
buffer.append( " {execution: " ).append( executionId ).append( "}" );
return buffer.toString();
}
}