This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository i18n. See http://git.nuiton.org/i18n.git commit 4c6a79c97731e0a8fab3de633597d45d8d7c921b Author: Tony CHEMIT <chemit@codelutin.com> Date: Sat Jul 26 19:34:54 2014 +0200 refs #3356 : add the generated csv file in the classpath --- .../plugin/bundle/csv/GenerateCsvBundleMojo.java | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/i18n-maven-plugin/src/main/java/org/nuiton/i18n/plugin/bundle/csv/GenerateCsvBundleMojo.java b/i18n-maven-plugin/src/main/java/org/nuiton/i18n/plugin/bundle/csv/GenerateCsvBundleMojo.java index e7fc82d..4250d9e 100644 --- a/i18n-maven-plugin/src/main/java/org/nuiton/i18n/plugin/bundle/csv/GenerateCsvBundleMojo.java +++ b/i18n-maven-plugin/src/main/java/org/nuiton/i18n/plugin/bundle/csv/GenerateCsvBundleMojo.java @@ -19,10 +19,10 @@ import java.util.TreeMap; /** * To generate a csv file from the full bundle of the module. - * + * <p/> * The csv file will have a first column with i18n keys, and a * column for each locale defined in {@link #locales}. - * + * <p/> * Created on 7/26/14. * * @author Tony Chemit - chemit@codelutin.com @@ -68,7 +68,7 @@ public class GenerateCsvBundleMojo extends AbstractCsvBundleMojo { * * @since 1.0.0 */ - @Parameter(property = "i18n.bundleOutputDir", defaultValue = "${basedir}/target/generated-sources/resources", required = true) + @Parameter(property = "i18n.bundleOutputDir", defaultValue = "${project.build.directory}/generated-sources/resources", required = true) protected File bundleOutputDir; /** @@ -92,6 +92,14 @@ public class GenerateCsvBundleMojo extends AbstractCsvBundleMojo { protected String bundleOutputPackage; /** + * To add the generated csv file in the classpath. + * + * @since 3.3 + */ + @Parameter(property = "i18n.addInClassPath", defaultValue = "true") + protected boolean addInClassPath; + + /** * The definitive directory where to generate the bundles (includes the * package of bundle). * @@ -133,6 +141,14 @@ public class GenerateCsvBundleMojo extends AbstractCsvBundleMojo { bundleOutputEncoding); } } + + if (addInClassPath) { + + if (isVerbose()) { + getLog().info("Will add **/*.csv in classpath"); + } + addResourceDir(bundleOutputDir, "**/*.csv"); + } } @Override -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.