|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.i18n.plugin.AbstractI18nPlugin
org.nuiton.i18n.plugin.parser.AbstractI18nParser
public abstract class AbstractI18nParser
Abstract implementation for parsing goal.
| Nested Class Summary | |
|---|---|
static class |
AbstractI18nParser.MySourceEntry
|
| Field Summary | |
|---|---|
protected AbstractI18nParser.MySourceEntry[] |
entries
Source entries (src+includes+excludes) . |
protected int |
fileTreated
|
protected PluginHelper.SortedProperties |
oldLanguage
|
protected PluginHelper.SortedProperties |
oldParser
|
protected PluginHelper.SortedProperties |
result
|
protected boolean |
safeMode
flag to save at eachfile treated the getter file |
protected boolean |
showTouchedFiles
flag to display touched files while parsing. |
protected long |
t0
|
protected boolean |
touchFile
|
protected java.util.List<java.io.File> |
treadedFiles
|
protected boolean |
treateDefaultEntry
treate default entry |
| Fields inherited from class org.nuiton.i18n.plugin.AbstractI18nPlugin |
|---|
artifactId, bundles, DIRECTORY_INSTALL, encoding, events, genSrc, keepBackup, keysModifier, locales, out, silent, src, strictMode, verbose, verboseLog |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractI18nParser()
|
|
| Method Summary | |
|---|---|
protected void |
addDefaultEntry()
Add the default entry to entries given in configuration. |
void |
execute()
|
protected abstract java.io.File |
getDefaultBasedir()
|
protected abstract java.lang.String[] |
getDefaultExcludes()
|
protected abstract java.lang.String[] |
getDefaultIncludes()
|
protected abstract java.lang.String |
getKeyModifierEnd()
|
protected abstract java.lang.String |
getKeyModifierStart()
|
protected abstract java.lang.String |
getOutGetter()
|
void |
init()
|
abstract FileUpdater |
newFileUpdater(SourceEntry entry)
|
void |
parse()
launch the parse on every given entries. |
protected void |
parseEntry(SourceEntry entry)
launch parsing on a given entry. |
protected void |
saveGetterFile()
Save the result in the getter file. |
| Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nPlugin |
|---|
addGetter, addParserEvent, backupFile, checkBundle, copyFile, getArtifactId, getGetterFile, getGetterFileBackup, getI18nFile, getI18nFileBackup, getVerboseLog, needGeneration, removeParserEvent |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nuiton.i18n.plugin.parser.Parser |
|---|
parseFile, parseLine |
| Field Detail |
|---|
protected boolean treateDefaultEntry
protected AbstractI18nParser.MySourceEntry[] entries
protected boolean showTouchedFiles
true if AbstractI18nPlugin.verbose is set
at true.
protected boolean safeMode
protected PluginHelper.SortedProperties result
protected PluginHelper.SortedProperties oldParser
protected PluginHelper.SortedProperties oldLanguage
protected int fileTreated
protected long t0
protected boolean touchFile
protected java.util.List<java.io.File> treadedFiles
| Constructor Detail |
|---|
public AbstractI18nParser()
| Method Detail |
|---|
protected abstract java.lang.String getOutGetter()
protected abstract java.lang.String getKeyModifierStart()
protected abstract java.lang.String getKeyModifierEnd()
protected abstract java.lang.String[] getDefaultIncludes()
protected abstract java.lang.String[] getDefaultExcludes()
protected abstract java.io.File getDefaultBasedir()
public abstract FileUpdater newFileUpdater(SourceEntry entry)
public void init()
init in class AbstractI18nPlugin
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void parse()
throws java.io.IOException
parse in interface Parserjava.io.IOException - if any io pbprotected void addDefaultEntry()
protected final void parseEntry(SourceEntry entry)
throws java.io.IOException
entry - currentEntry to treate
java.io.IOException - if any io pb.
protected void saveGetterFile()
throws java.io.IOException
java.io.IOException - if any io pb
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||