|
||||||||||
| 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
org.nuiton.i18n.plugin.parser.impl.ParserXmlMojo
org.nuiton.i18n.plugin.parser.impl.ParserValidationMojo
public class ParserValidationMojo
Récupération des chaine à traduire depuis les fichiers xml de validation.
Le goal doit etre execute avant que les resources soient copiees dans target/classes pour rendre operatne le file updater (sinon lesfichiers sont toujours a jour...)
| 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 File |
cp
Where jaxx files should have been generated. |
protected File |
defaultBasedir
default src for an entry. |
protected String |
defaultIncludes
Source entries (src+includes+excludes) . |
protected String |
rulesValidation
Regles xml. |
protected boolean |
useLocalResolver
Always use the local xowrks dtd to increase performance. |
| Fields inherited from class org.nuiton.i18n.plugin.parser.impl.ParserXmlMojo |
|---|
BUFFER_SIZE, builder, factory, rules, xpath |
| Fields inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo |
|---|
backupGetter, entries, events, fileTreated, keysModifier, oldLanguage, oldParser, result, safeMode, showTouchedFiles, t0, touchFile, treadedFiles, treateDefaultEntry, verboseLog |
| 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 | |
|---|---|
ParserValidationMojo()
|
|
| Method Summary | |
|---|---|
String |
extract(String i18nString)
Fonction d'extraction de la chaine |
protected String |
getCoreFileRules()
|
File |
getDefaultBasedir()
|
String[] |
getDefaultExcludes()
|
String[] |
getDefaultIncludes()
|
EntityResolver |
getEntityResolver()
|
protected String |
getFileRules()
|
protected String |
getKeyModifierEnd()
|
protected String |
getKeyModifierStart()
|
protected String |
getOutGetter()
|
org.nuiton.io.FileUpdater |
newFileUpdater(SourceEntry entry)
|
| Methods inherited from class org.nuiton.i18n.plugin.parser.impl.ParserXmlMojo |
|---|
getSystemId, init, parseFile, parseLine |
| Methods inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo |
|---|
addDefaultEntry, addParserEvent, doAction, getVerboseLog, isStrictMode, parse, parseEntry, removeParserEvent, saveGetterFile |
| 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.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected String defaultIncludes
protected File cp
protected String rulesValidation
protected File defaultBasedir
protected boolean useLocalResolver
| Constructor Detail |
|---|
public ParserValidationMojo()
| Method Detail |
|---|
public String[] getDefaultIncludes()
getDefaultIncludes in class AbstractI18nParserMojopublic String[] getDefaultExcludes()
getDefaultExcludes in class AbstractI18nParserMojopublic File getDefaultBasedir()
getDefaultBasedir in class ParserXmlMojopublic org.nuiton.io.FileUpdater newFileUpdater(SourceEntry entry)
newFileUpdater in class AbstractI18nParserMojoprotected String getOutGetter()
getOutGetter in class AbstractI18nParserMojoprotected String getKeyModifierStart()
getKeyModifierStart in class AbstractI18nParserMojoprotected String getKeyModifierEnd()
getKeyModifierEnd in class AbstractI18nParserMojoprotected String getFileRules()
getFileRules in class ParserXmlMojoprotected String getCoreFileRules()
getCoreFileRules in class ParserXmlMojopublic String extract(String i18nString)
ParserXmlMojo
extract in class ParserXmlMojoi18nString - le clef i18n
public EntityResolver getEntityResolver()
getEntityResolver in class ParserXmlMojo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||