Index: maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Generate.java diff -u maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Generate.java:1.2 maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Generate.java:1.3 --- maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Generate.java:1.2 Fri Oct 26 15:39:23 2007 +++ maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Generate.java Mon Oct 29 17:29:39 2007 @@ -53,6 +53,7 @@ */ public void execute() throws MojoExecutionException, MojoFailureException { if(gen) { + // Récupére les libs seulement si le plugin est lancé après la phase de compilation Set artifacts = project.getArtifacts(); try { @@ -67,6 +68,7 @@ if(libBundle != null) { concactProperties(libBundle, bundleJava); + log.info("Processing library " + libBundle.getAbsolutePath()); libBundle.delete(); } } Index: maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Getter.java diff -u maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Getter.java:1.2 maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Getter.java:1.3 --- maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Getter.java:1.2 Fri Oct 26 15:39:23 2007 +++ maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/Getter.java Mon Oct 29 17:29:39 2007 @@ -25,7 +25,8 @@ public void execute() throws MojoExecutionException, MojoFailureException { try { File bundleGetters = new File(out.getAbsolutePath() + File.separatorChar + "language.properties"); - + bundleGetters.createNewFile(); + DirectoryScanner ds = new DirectoryScanner(); ds.setBasedir(out); ds.setIncludes(new String[] {"*.getter"}); @@ -37,6 +38,7 @@ File bundleGetter = new File(out.getAbsolutePath() + File.separatorChar + files[i]); concactProperties(bundleGetter, bundleGetters); bundleGetter.delete(); + log.info("Create bundle with " + bundleGetter.getAbsolutePath()); } // Création des bundles Index: maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java diff -u maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java:1.2 maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java:1.3 --- maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java:1.2 Fri Oct 26 15:39:23 2007 +++ maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java Mon Oct 29 17:29:39 2007 @@ -78,8 +78,9 @@ Properties propertiesIn = new SortedProperties(); propertiesIn.load(new FileInputStream(in)); - Properties propertiesOut = new SortedProperties(propertiesIn); + Properties propertiesOut = new SortedProperties(); propertiesOut.load(new FileInputStream(out)); + propertiesOut.putAll(propertiesIn); propertiesOut.store(new FileOutputStream(out), null); }