|
||||||||||
| 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.plugin.AbstractPlugin
org.nuiton.i18n.plugin.AbstractI18nMojo
org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo
public abstract class AbstractI18nParserMojo
Abstract implementation for parsing goal.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected boolean |
backupGetter
flag to save previous getter in a backup before doing parsing. |
protected I18nSourceEntry[] |
entries
Source entries (src+includes+excludes) . |
protected List<ParserEvent> |
events
Liste des évènements |
protected int |
fileTreated
|
protected boolean |
keysModifier
Active la modification de cle. |
protected org.nuiton.io.SortedProperties |
oldLanguage
|
protected org.nuiton.io.SortedProperties |
oldParser
|
protected org.nuiton.io.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 List<File> |
treadedFiles
|
protected boolean |
treateDefaultEntry
treate default entry |
protected I18nLogger |
verboseLog
logger verbeux |
| Fields inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo |
|---|
artifactId, bundles, encoding, genSrc, locales, out, project, silent, src, strictMode, verbose |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractI18nParserMojo()
|
|
| Method Summary | |
|---|---|
protected void |
addDefaultEntry()
Add the default entry to entries given in configuration. |
protected void |
addParserEvent(ParserEvent parserEvent)
Ajoute un évènement |
protected void |
doAction()
|
protected abstract File |
getDefaultBasedir()
|
protected abstract String[] |
getDefaultExcludes()
|
protected abstract String[] |
getDefaultIncludes()
|
protected abstract String |
getKeyModifierEnd()
|
protected abstract String |
getKeyModifierStart()
|
protected abstract String |
getOutGetter()
|
protected I18nLogger |
getVerboseLog()
|
void |
init()
|
boolean |
isStrictMode()
|
abstract org.nuiton.io.FileUpdater |
newFileUpdater(SourceEntry entry)
|
void |
parse()
Lancement du parser |
protected void |
parseEntry(SourceEntry entry)
launch parsing on a given entry. |
protected void |
removeParserEvent(ParserEvent parserEvent)
Supprime un évènement |
protected void |
saveGetterFile()
Save the result in the getter file. |
| Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo |
|---|
addGetter, backupFile, checkBundle, checkPackaging, getArtifactId, getBackupFile, getEncoding, getGetterFile, getI18nFile, getProject, isVerbose, needGeneration, setEncoding, setProject, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, afterExecute, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile |
| 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 |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected boolean keysModifier
protected boolean treateDefaultEntry
protected I18nSourceEntry[] entries
protected boolean showTouchedFiles
true if AbstractI18nMojo.verbose is
set at true.
protected boolean safeMode
protected boolean backupGetter
protected List<ParserEvent> events
protected org.nuiton.io.SortedProperties result
protected org.nuiton.io.SortedProperties oldParser
protected org.nuiton.io.SortedProperties oldLanguage
protected int fileTreated
protected long t0
protected boolean touchFile
protected List<File> treadedFiles
protected I18nLogger verboseLog
| Constructor Detail |
|---|
public AbstractI18nParserMojo()
| Method Detail |
|---|
protected abstract String getOutGetter()
protected abstract String getKeyModifierStart()
protected abstract String getKeyModifierEnd()
protected abstract String[] getDefaultIncludes()
protected abstract String[] getDefaultExcludes()
protected abstract File getDefaultBasedir()
public abstract org.nuiton.io.FileUpdater newFileUpdater(SourceEntry entry)
public boolean isStrictMode()
protected I18nLogger getVerboseLog()
public void init()
throws Exception
init in class AbstractI18nMojoException
protected void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginException
public void parse()
throws IOException
Parser
parse in interface ParserIOException - if any io pbprotected void addDefaultEntry()
protected final void parseEntry(SourceEntry entry)
throws IOException
entry - currentEntry to treate
IOException - if any io pb.
protected void saveGetterFile()
throws IOException
IOException - if any io pbprotected void addParserEvent(ParserEvent parserEvent)
parserEvent - l'évènement d'ajoutprotected void removeParserEvent(ParserEvent parserEvent)
parserEvent - l'évènement de suppression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||