org.nuiton.i18n.plugin.parser.impl
Class ParserValidationMojo
java.lang.Object
org.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
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, I18nParserConfiguration, org.nuiton.plugin.Plugin
public class ParserValidationMojo
- extends ParserXmlMojo
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...)
- Author:
- tchemit
- Is defined by the goal name:
- parserValidation
- Is bound to the specified phase of the standard build lifecycle:
- generate-resources
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging |
| 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 |
| Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo |
addGetter, backupFile, checkBundle, checkPackaging, getArtifactId, getBackupFile, getEncoding, getGetterFile, getI18nFile, getProject, isSilent, isVerbose, needGeneration, setEncoding, setProject, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, 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 |
defaultIncludes
protected String defaultIncludes
- Source entries (src+includes+excludes) .
- Is defined by:
- expression:
- ${i18n.defaultIncludes}
- default-value:
- **\/**-validation.xml
cp
protected File cp
- Where jaxx files should have been generated.
- Is defined by:
- expression:
- ${i18n.cp}
- default-value:
- ${basedir}/target/classes
rulesValidation
protected String rulesValidation
- Regles xml.
- Is defined by:
- expression:
- ${i18n.rulesValidation}
- default-value:
- validation.rules
defaultBasedir
protected File defaultBasedir
- default src for an entry.
- Is defined by:
- expression:
- ${i18n.defaultBasedir}
- default-value:
- ${basedir}/src/main/resources
- Is required.
useLocalResolver
protected boolean useLocalResolver
- Always use the local xowrks dtd to increase performance.
- Since:
- 1.6.0
- Is defined by:
- expression:
- ${i18n.useLocalResolver}
- default-value:
- true
ParserValidationMojo
public ParserValidationMojo()
getDefaultIncludes
public String[] getDefaultIncludes()
- Specified by:
getDefaultIncludes in class AbstractI18nParserMojo
- Returns:
- the default includes to add to directory scanner
getDefaultExcludes
public String[] getDefaultExcludes()
- Specified by:
getDefaultExcludes in class AbstractI18nParserMojo
- Returns:
- the default excludes to add to directory scanner
getDefaultBasedir
public File getDefaultBasedir()
- Specified by:
getDefaultBasedir in class AbstractI18nParserMojo
- Returns:
- the default src directory to use in directory scanner
newFileUpdater
public org.nuiton.io.FileUpdater newFileUpdater(SourceEntry entry)
- Specified by:
newFileUpdater in class AbstractI18nParserMojo
- Parameters:
entry - the incoming source entry to attach to the file updater
- Returns:
- a new file updater to detects files to treate
getOutGetter
protected String getOutGetter()
- Specified by:
getOutGetter in class AbstractI18nParserMojo
- Returns:
- the outGetter to use for the instance (java.getter,...)
getFileRules
protected String getFileRules()
- Specified by:
getFileRules in class ParserXmlMojo
- Returns:
- le fichier des rules
getCoreFileRules
protected String getCoreFileRules()
- Specified by:
getCoreFileRules in class ParserXmlMojo
- Returns:
- le fichier des rules de base à toujours charger
newXmlFileParser
protected ParserXmlMojo.XmlFileParser newXmlFileParser(XPath xpath,
DocumentBuilder builder)
- Specified by:
newXmlFileParser in class ParserXmlMojo
getEntityResolver
protected EntityResolver getEntityResolver()
getKeyModifierStart
@Deprecated
protected String getKeyModifierStart()
- Deprecated.
- Specified by:
getKeyModifierStart in class AbstractI18nParserMojo
- Returns:
- the starting regex expression to catch keys in key modifier
getKeyModifierEnd
@Deprecated
protected String getKeyModifierEnd()
- Deprecated.
- Specified by:
getKeyModifierEnd in class AbstractI18nParserMojo
- Returns:
- the ending regex expression to catch keys in key modifier
Copyright © 2007-2010 CodeLutin. All Rights Reserved.