PR: MNG-1352

Submitted By: Edwin Punzalan
Reviewed By: John Casey

Applied this patch, which will ensure that alias != param.getName() before adding a duplicate diagnostic message for configuration.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@354464 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-12-06 16:34:09 +00:00
parent a321da38d6
commit eeb14425c6
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class PluginParameterException
param.getName() + ">\n</configuration>" ); param.getName() + ">\n</configuration>" );
String alias = param.getAlias(); String alias = param.getAlias();
if ( StringUtils.isNotEmpty( alias ) ) if ( StringUtils.isNotEmpty( alias ) && !alias.equals( param.getName() ) )
{ {
messageBuffer.append( messageBuffer.append(
"\n\n-OR-\n\n<configuration>\n ...\n <" + alias + ">VALUE</" + alias + ">\n</configuration>\n" ); "\n\n-OR-\n\n<configuration>\n ...\n <" + alias + ">VALUE</" + alias + ">\n</configuration>\n" );