You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/10/03 19:17:48 UTC
svn commit: r821367 -
/maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
Author: bentmann
Date: Sat Oct 3 17:17:48 2009
New Revision: 821367
URL: http://svn.apache.org/viewvc?rev=821367&view=rev
Log:
[MPLUGIN-161] plugin:xdoc generates an incomplete description about the execution of another plugin goal
Modified:
maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
Modified: maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java?rev=821367&r1=821366&r2=821367&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java (original)
+++ maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java Sat Oct 3 17:17:48 2009
@@ -771,9 +771,13 @@
*/
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 );
}