[MPLUGIN-161] plugin:xdoc generates an incomplete description about the execution of another plugin goal

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@821367 13f79535-47bb-0310-9956-ffa450edef68
master
Benjamin Bentmann 2009-10-03 17:17:48 +00:00
parent 63cd33c8c4
commit 0556d6182d
1 changed files with 5 additions and 1 deletions

View File

@ -771,9 +771,13 @@ public class PluginXdocGenerator
*/
private String format( String key, Object[] args )
{
String pattern = getString( key );
// we don't need quoting so spare us the confusion in the resource bundle to double them up in some keys
pattern = StringUtils.replace( pattern, "'", "''" );
MessageFormat messageFormat = new MessageFormat( "" );
messageFormat.setLocale( locale );
messageFormat.applyPattern( getBundle().getString( key ) );
messageFormat.applyPattern( pattern );
return messageFormat.format( args );
}