@Mojo(name="parserValidation",
defaultPhase=GENERATE_RESOURCES)
public class ParserValidationMojo
extends AbstractParserXmlMojo
process-resources
phase, otherwise all files will be considered as uptodate.AbstractParserXmlMojo.XmlFileParser| Modifier and Type | Field and Description |
|---|---|
protected String |
coreRuleFile
Defines the core rules file used to detect i18n keys in xml validation
files.
|
static String |
DEFAULT_INCLUDES |
protected File |
defaultBasedir
Root directory of the default entry.
|
protected String |
defaultIncludes
Default included files to process (ant-like expression).
|
protected String |
outputGetter
Defines the file name of the getter where to put detected i18n keys
while getter phase.
|
protected boolean |
useLocalResolver
Always use the local xworks dtd to increase performance.
|
BUFFER_SIZE, documentBuilderFactory, factory, namespaces, rules, userRulesFilesacceptKeyFormat, acceptPattern, backupGetter, cp, entries, force, oldLanguage, oldParser, showTouchedFiles, src, strictMode, t0, treateDefaultEntryartifactId, outbundles, encoding, locales, mavenSession, project, silent, verbose| Constructor and Description |
|---|
ParserValidationMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCoreRuleFile() |
File |
getDefaultBasedir() |
String[] |
getDefaultExcludes() |
String[] |
getDefaultIncludes() |
protected String |
getOutGetter() |
org.nuiton.io.FileUpdater |
newFileUpdater(SourceEntry entry) |
protected AbstractParserXmlMojo.XmlFileParser |
newXmlFileParser(XPath xpath,
DocumentBuilder builder) |
getRulefiles, getUserRuleFiles, init, loadRules, loadRulesFile, newFileParseraddDefaultEntry, doAction, getLogEntry, getResult, isForce, isShowTouchedFiles, isStrictMode, onEnterEntry, saveGetterFileaddGetter, getGetterFile, needGenerationbackupFile, checkBundle, checkPackaging, failsIfAnyKeyMissingInBundle, failsIfAnyKeyMissingValue, getBackupFile, getEncoding, getProject, isSilent, isVerbose, setEncoding, setProject, setVerboseacceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, checkEncoding, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLog, isSilent, isVerbosepublic static final String DEFAULT_INCLUDES
@Parameter(property="i18n.defaultBasedir",
defaultValue="${basedir}/src/main/resources",
required=true)
protected File defaultBasedir
@Parameter(property="i18n.defaultIncludes",
defaultValue="**/*-validation.xml",
required=true)
protected String defaultIncludes
@Parameter(property="i18n.coreRuleFile",
defaultValue="validation.rules",
required=true)
protected String coreRuleFile
AbstractParserXmlMojo.userRulesFiles parameter.@Parameter(property="i18n.useLocalResolver",
defaultValue="true")
protected boolean useLocalResolver
@Parameter(property="i18n.outputGetter",
defaultValue="validation.getter",
required=true)
protected String outputGetter
public String[] getDefaultIncludes()
getDefaultIncludes in class AbstractI18nParserMojopublic String[] getDefaultExcludes()
getDefaultExcludes in class AbstractI18nParserMojopublic File getDefaultBasedir()
getDefaultBasedir in class AbstractI18nParserMojopublic org.nuiton.io.FileUpdater newFileUpdater(SourceEntry entry)
newFileUpdater in class AbstractI18nParserMojoentry - the incoming source entry to attach to the file updaterprotected String getOutGetter()
getOutGetter in class AbstractI18nParserMojoprotected String getCoreRuleFile()
getCoreRuleFile in class AbstractParserXmlMojoprotected AbstractParserXmlMojo.XmlFileParser newXmlFileParser(XPath xpath, DocumentBuilder builder)
newXmlFileParser in class AbstractParserXmlMojoCopyright © 2007–2016 CodeLutin. All rights reserved.