r1875 - in trunk: maven-i18n-plugin/src/it/ano-672/src/test/java/org/nuiton/i18n maven-i18n-plugin/src/test/java/org/nuiton/i18n/plugin/parser/impl src/site/apt src/site/en/apt
Author: tchemit Date: 2011-01-31 14:31:24 +0100 (Mon, 31 Jan 2011) New Revision: 1875 Url: http://nuiton.org/repositories/revision/i18n/1875 Log: update docs + others from tag 2.3 Modified: trunk/maven-i18n-plugin/src/it/ano-672/src/test/java/org/nuiton/i18n/I18nTest.java trunk/maven-i18n-plugin/src/test/java/org/nuiton/i18n/plugin/parser/impl/JavaFileParserTest.java trunk/src/site/apt/index.apt trunk/src/site/en/apt/index.apt Modified: trunk/maven-i18n-plugin/src/it/ano-672/src/test/java/org/nuiton/i18n/I18nTest.java =================================================================== --- trunk/maven-i18n-plugin/src/it/ano-672/src/test/java/org/nuiton/i18n/I18nTest.java 2011-01-31 13:09:57 UTC (rev 1874) +++ trunk/maven-i18n-plugin/src/it/ano-672/src/test/java/org/nuiton/i18n/I18nTest.java 2011-01-31 13:31:24 UTC (rev 1875) @@ -1,23 +1,23 @@ /* * #%L * I18n :: Maven Plugin - * + * * * $Id$ * $HeadURL$ * %% * Copyright (C) 2007 - 2010 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 + * 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 + * + * 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>. * #L% Modified: trunk/maven-i18n-plugin/src/test/java/org/nuiton/i18n/plugin/parser/impl/JavaFileParserTest.java =================================================================== --- trunk/maven-i18n-plugin/src/test/java/org/nuiton/i18n/plugin/parser/impl/JavaFileParserTest.java 2011-01-31 13:09:57 UTC (rev 1874) +++ trunk/maven-i18n-plugin/src/test/java/org/nuiton/i18n/plugin/parser/impl/JavaFileParserTest.java 2011-01-31 13:31:24 UTC (rev 1875) @@ -1,3 +1,27 @@ +/* + * #%L + * I18n :: Maven Plugin + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2007 - 2011 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>. + * #L% + */ package org.nuiton.i18n.plugin.parser.impl; import org.apache.maven.plugin.logging.SystemStreamLog; Property changes on: trunk/maven-i18n-plugin/src/test/java/org/nuiton/i18n/plugin/parser/impl/JavaFileParserTest.java ___________________________________________________________________ Modified: svn:keywords - Author Date Id Revision + Author Date Id Revision HeadURL Modified: trunk/src/site/apt/index.apt =================================================================== --- trunk/src/site/apt/index.apt 2011-01-31 13:09:57 UTC (rev 1874) +++ trunk/src/site/apt/index.apt 2011-01-31 13:31:24 UTC (rev 1875) @@ -1,23 +1,23 @@ ~~~ ~~ #%L ~~ I18n -~~ +~~ ~~ $Id$ ~~ $HeadURL$ ~~ %% ~~ Copyright (C) 2008 - 2010 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 +~~ 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 +~~ +~~ 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>. ~~ #L% @@ -32,7 +32,7 @@ utile. De nombreux autre avantages existent à utiliser Nuiton I18n : - Extraction des clés de traduction - + - Integration au process de build au travers de Maven ou Ant Petit exemple qui démontre la simplicité d'utilisation de Nuiton I18n : @@ -51,6 +51,32 @@ - {{{./ant-i18n-task/index.html}I18n Ant task}} (ce module a été désactivé depuis la version 2.0) +Quoi de neuf dans la version 2.3 + + La version 2.3 améliore de façon considérable les temps de détection des clefs + i18n pour les fichiers java (mojo <<parserJava>>). + + Voir {{{http://nuiton.org/issues/show/1275}Evolution #1275: Improve parserJava performance}}. + + On passe à des temps très raisonnable (en dessous de 5 millisecondes par + fichier!) comme montré ci-dessous : + +-------------------------------------------------------------------------------- +mvn package -Pnotests -Di18n.strictMode -DnuitonI18nVersion=2.2 + +[INFO] --- maven-i18n-plugin:2.2:parserJava (default) @ observe-business --- +[INFO] Parsing is done. [treated file(s) : 76/187](total time:19.852s) ( ~ 106.158ms / file) +[INFO] --- maven-i18n-plugin:2.2:parserJava (scan-sources) @ observe-swing --- +[INFO] Parsing is done. [treated file(s) : 151/206](total time:38.732s) ( ~ 188.021ms / file) + +mvn package -Pnotests -Di18n.strictMode -DnuitonI18nVersion=2.3-SNAPSHOT + +[INFO] --- maven-i18n-plugin:2.3-SNAPSHOT:parserJava (default) @ observe-business --- +[INFO] Parsing is done. [treated file(s) : 76/187](total time:640.602ms) ( ~ 3.426ms / file) +[INFO] --- maven-i18n-plugin:2.3-SNAPSHOT:parserJava (scan-sources) @ observe-swing --- +[INFO] Parsing is done. [treated file(s) : 151/206](total time:450.823ms) ( ~ 2.188ms / file) +-------------------------------------------------------------------------------- + Quoi de neuf dans la version 2.2 La version 2.2 supprimer juste des deux méthodes dépréciées en <2.1> : @@ -114,7 +140,7 @@ ----------------------------------------------------------------------------- Et maintenant c'est : - + ----------------------------------------------------------------------------- malib_fr_FR.properties ----------------------------------------------------------------------------- @@ -133,7 +159,7 @@ * Ajout d'un parseur JSP Un nouveau parseur JSP a été introduit pour pouvoir intégrer le système de - détection I18n dans des développement web (struts par exemple). + détection I18n dans des développement web (struts par exemple). Jettez un oeil aux tutoriaux pour voir comment enrichir votre application avec Nuiton I18n. @@ -157,10 +183,7 @@ profile nommé <<ant-task-profile>>. Donc pour construire le projet I18n avec ce module il suffit de lancer : - + ----------------------------------------------------------------------------- -mvn install -Pant-task-profile +mvn install -Pextra-modules ----------------------------------------------------------------------------- - - - Modified: trunk/src/site/en/apt/index.apt =================================================================== --- trunk/src/site/en/apt/index.apt 2011-01-31 13:09:57 UTC (rev 1874) +++ trunk/src/site/en/apt/index.apt 2011-01-31 13:31:24 UTC (rev 1875) @@ -1,23 +1,23 @@ ~~~ ~~ #%L ~~ I18n -~~ +~~ ~~ $Id$ ~~ $HeadURL$ ~~ %% ~~ Copyright (C) 2008 - 2010 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 +~~ 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 +~~ +~~ 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>. ~~ #L% @@ -51,7 +51,32 @@ - {{{./maven-i18n-plugin/index.html}I18n Maven Plugin}} +What's new in 2.3 version + Version 2.3 improves a lot performance on detection of java file i18n keys + (mojo <<parserJava>>). + + See {{{http://nuiton.org/issues/show/1275}Evolution #1275: Improve parserJava performance}}. + + We are now having some nice times (under 5 millisecondes for a file!) as + shown below : + +-------------------------------------------------------------------------------- +mvn package -Pnotests -Di18n.strictMode -DnuitonI18nVersion=2.2 + +[INFO] --- maven-i18n-plugin:2.2:parserJava (default) @ observe-business --- +[INFO] Parsing is done. [treated file(s) : 76/187](total time:19.852s) ( ~ 106.158ms / file) +[INFO] --- maven-i18n-plugin:2.2:parserJava (scan-sources) @ observe-swing --- +[INFO] Parsing is done. [treated file(s) : 151/206](total time:38.732s) ( ~ 188.021ms / file) + +mvn package -Pnotests -Di18n.strictMode -DnuitonI18nVersion=2.3-SNAPSHOT + +[INFO] --- maven-i18n-plugin:2.3-SNAPSHOT:parserJava (default) @ observe-business --- +[INFO] Parsing is done. [treated file(s) : 76/187](total time:640.602ms) ( ~ 3.426ms / file) +[INFO] --- maven-i18n-plugin:2.3-SNAPSHOT:parserJava (scan-sources) @ observe-swing --- +[INFO] Parsing is done. [treated file(s) : 151/206](total time:450.823ms) ( ~ 2.188ms / file) +-------------------------------------------------------------------------------- + What's new in 2.2 version Version 2.2 just suppress the two depreciated methods in 2.1 version : @@ -158,7 +183,5 @@ So to build the I18n project with this module, you just have to launch : ----------------------------------------------------------------------------- -mvn install -Pant-task-profile +mvn install -Pextra-modules ----------------------------------------------------------------------------- - -
participants (1)
-
tchemit@users.nuiton.org