Author: tchemit Date: 2013-07-18 14:38:49 +0200 (Thu, 18 Jul 2013) New Revision: 2007 Url: http://nuiton.org/projects/i18n/repository/revisions/2007 Log: fixes #2763: Include generated csv file in class-path fixes #2764: Quote csv cells in csv bundle file with "" Modified: trunk/i18n-maven-plugin/src/main/java/org/nuiton/i18n/plugin/bundle/BundleMojo.java Modified: trunk/i18n-maven-plugin/src/main/java/org/nuiton/i18n/plugin/bundle/BundleMojo.java =================================================================== --- trunk/i18n-maven-plugin/src/main/java/org/nuiton/i18n/plugin/bundle/BundleMojo.java 2013-07-18 12:37:35 UTC (rev 2006) +++ trunk/i18n-maven-plugin/src/main/java/org/nuiton/i18n/plugin/bundle/BundleMojo.java 2013-07-18 12:38:49 UTC (rev 2007) @@ -115,7 +115,7 @@ protected File bundleCsvFile; /** - * Char separator used when generating the csf bundle file if parameter + * Char separator used when generating the csv bundle file if parameter * {@link #generateCsvFile} is on. * * @since 2.5 @@ -150,6 +150,10 @@ addResourceDir(bundleOutputDir, "**/*.properties"); + if (generateCsvFile) { + addResourceDir(bundleOutputDir, "**/*.csv"); + } + if (StringUtils.isNotEmpty(bundleFormatConverter)) { // get converter from universe @@ -395,8 +399,9 @@ for (Locale locale : locales) { SortedProperties properties = bundlesByLocale.get(locale); Object value = properties.get(key); - builder.append(bundleCsvSeparator); + builder.append(bundleCsvSeparator).append("\""); builder.append(value == null ? "" : value); + builder.append("\""); } writer.write(builder.toString()); }