Author: tchemit Date: 2010-11-12 12:41:16 +0100 (Fri, 12 Nov 2010) New Revision: 1804 Url: http://nuiton.org/repositories/revision/i18n/1804 Log: introduce prepareFile method to be able to do things before scanning it Modified: trunk/maven-i18n-plugin/src/main/java/org/nuiton/i18n/plugin/parser/AbstractI18nParserMojo.java Modified: trunk/maven-i18n-plugin/src/main/java/org/nuiton/i18n/plugin/parser/AbstractI18nParserMojo.java =================================================================== --- trunk/maven-i18n-plugin/src/main/java/org/nuiton/i18n/plugin/parser/AbstractI18nParserMojo.java 2010-11-11 16:48:13 UTC (rev 1803) +++ trunk/maven-i18n-plugin/src/main/java/org/nuiton/i18n/plugin/parser/AbstractI18nParserMojo.java 2010-11-12 11:41:16 UTC (rev 1804) @@ -87,7 +87,7 @@ * @parameter expression="${i18n.cp}" default-value="${basedir}/target/classes" */ protected File cp; - + /** * To activate the modification of keys * <p/> @@ -202,6 +202,11 @@ parserExecutor = new ParserExecutor(this); } + protected boolean onEnterEntry(I18nSourceEntry entry) { + boolean skip = entry.init(this); + return skip; + } + @Override protected void doAction() throws Exception { if (keysModifier) { @@ -241,7 +246,7 @@ for (I18nSourceEntry entry : entries) { - boolean skip = entry.init(this); + boolean skip = onEnterEntry(entry); if (skip) { if (!silent && verbose) {