[Lutinutil-commits] r1145 - in maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin: . parser parser/event parser/impl
Author: ruchaud Date: 2008-09-29 08:49:13 +0000 (Mon, 29 Sep 2008) New Revision: 1145 Added: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/ParserEvent.java Removed: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/event/ParserEvent.java Modified: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/AbstractI18nPlugin.java maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/AbstractI18nParser.java maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/event/KeysModifier.java maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserJava.java maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserJavaActionConfig.java maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserXml.java Log: D?\195?\169placement des fichiers dans la nouvelle arborescence (correction) Modified: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/AbstractI18nPlugin.java =================================================================== --- maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/AbstractI18nPlugin.java 2008-09-29 08:47:23 UTC (rev 1144) +++ maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/AbstractI18nPlugin.java 2008-09-29 08:49:13 UTC (rev 1145) @@ -18,7 +18,7 @@ package org.codelutin.i18n.plugin; -import org.codelutin.i18n.plugin.parser.event.ParserEvent; +import org.codelutin.i18n.plugin.parser.ParserEvent; import org.apache.maven.plugin.AbstractMojo; import org.codelutin.i18n.plugin.PluginHelper; Modified: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/AbstractI18nParser.java =================================================================== --- maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/AbstractI18nParser.java 2008-09-29 08:47:23 UTC (rev 1144) +++ maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/AbstractI18nParser.java 2008-09-29 08:49:13 UTC (rev 1145) @@ -19,7 +19,7 @@ import org.codelutin.i18n.plugin.SourceEntry; import org.codelutin.i18n.plugin.AbstractI18nPlugin; -import org.codelutin.i18n.plugin.parser.event.ParserEvent; +import org.codelutin.i18n.plugin.parser.ParserEvent; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.codelutin.i18n.plugin.PluginHelper; Copied: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/ParserEvent.java (from rev 1143, maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/event/ParserEvent.java) =================================================================== --- maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/ParserEvent.java (rev 0) +++ maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/ParserEvent.java 2008-09-29 08:49:13 UTC (rev 1145) @@ -0,0 +1,59 @@ +/* + * *##% Plugin maven pour lutini18n + * Copyright (C) 2007 - 2008 CodeLutin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */ + +package org.codelutin.i18n.plugin.parser; + +import java.io.File; + +/** + * Permet d'ajouter des évènements sur les parsers + * + * @author julien + */ +public interface ParserEvent { + + /** + * M�thode appelée quand on change de fichier parsé + * + * @param file + */ + public void eventChangeFile(File file); + + /** + * Méthode appelée après le parsing du fichier + * + * @param file + */ + public void eventNextFile(File file); + + /** + * M�thode appelée quand on change de clé + * + * @param keyI18n + * @param newKey + */ + public void eventChangeKey(String keyI18n, boolean newKey); + + /** + * M�thode appelée pour récupérer la nouvelle valeur de clé + * + * @return + */ + public String eventGetRealKey(); + +} Modified: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/event/KeysModifier.java =================================================================== --- maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/event/KeysModifier.java 2008-09-29 08:47:23 UTC (rev 1144) +++ maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/event/KeysModifier.java 2008-09-29 08:49:13 UTC (rev 1145) @@ -18,7 +18,7 @@ package org.codelutin.i18n.plugin.parser.event; -import org.codelutin.i18n.plugin.parser.event.ParserEvent; +import org.codelutin.i18n.plugin.parser.ParserEvent; import org.codelutin.i18n.plugin.parser.ParserException; import org.codelutin.util.FileUtil; Deleted: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/event/ParserEvent.java =================================================================== --- maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/event/ParserEvent.java 2008-09-29 08:47:23 UTC (rev 1144) +++ maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/event/ParserEvent.java 2008-09-29 08:49:13 UTC (rev 1145) @@ -1,59 +0,0 @@ -/* - * *##% Plugin maven pour lutini18n - * Copyright (C) 2007 - 2008 CodeLutin - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */ - -package org.codelutin.i18n.plugin.parser.event; - -import java.io.File; - -/** - * Permet d'ajouter des évènements sur les parsers - * - * @author julien - */ -public interface ParserEvent { - - /** - * M�thode appelée quand on change de fichier parsé - * - * @param file - */ - public void eventChangeFile(File file); - - /** - * Méthode appelée après le parsing du fichier - * - * @param file - */ - public void eventNextFile(File file); - - /** - * M�thode appelée quand on change de clé - * - * @param keyI18n - * @param newKey - */ - public void eventChangeKey(String keyI18n, boolean newKey); - - /** - * M�thode appelée pour récupérer la nouvelle valeur de clé - * - * @return - */ - public String eventGetRealKey(); - -} Modified: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserJava.java =================================================================== --- maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserJava.java 2008-09-29 08:47:23 UTC (rev 1144) +++ maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserJava.java 2008-09-29 08:49:13 UTC (rev 1145) @@ -20,7 +20,7 @@ import org.apache.maven.project.MavenProject; import org.codelutin.i18n.plugin.parser.AbstractI18nParser; -import org.codelutin.i18n.plugin.parser.event.ParserEvent; +import org.codelutin.i18n.plugin.parser.ParserEvent; import org.codelutin.i18n.plugin.parser.ParserException; import org.codelutin.processor.filters.I18nFilter; import org.codelutin.util.FileUpdaterHelper; Modified: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserJavaActionConfig.java =================================================================== --- maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserJavaActionConfig.java 2008-09-29 08:47:23 UTC (rev 1144) +++ maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserJavaActionConfig.java 2008-09-29 08:49:13 UTC (rev 1145) @@ -17,7 +17,7 @@ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */ package org.codelutin.i18n.plugin.parser.impl; -import org.codelutin.i18n.plugin.parser.event.ParserEvent; +import org.codelutin.i18n.plugin.parser.ParserEvent; import java.io.File; import java.util.regex.Matcher; Modified: maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserXml.java =================================================================== --- maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserXml.java 2008-09-29 08:47:23 UTC (rev 1144) +++ maven-i18n-plugin/trunk/src/main/java/org/codelutin/i18n/plugin/parser/impl/ParserXml.java 2008-09-29 08:49:13 UTC (rev 1145) @@ -19,7 +19,7 @@ package org.codelutin.i18n.plugin.parser.impl; import org.codelutin.i18n.plugin.parser.AbstractI18nParser; -import org.codelutin.i18n.plugin.parser.event.ParserEvent; +import org.codelutin.i18n.plugin.parser.ParserEvent; import org.codelutin.i18n.plugin.parser.ParserException; import org.w3c.dom.Node; import org.w3c.dom.NodeList;
participants (1)
-
ruchaud@users.labs.libre-entreprise.org