|
||||||||||
| 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.AbstractParserXmlMojo
org.nuiton.i18n.plugin.parser.impl.ParserJspMojo
public class ParserJspMojo
Find i18n keys from jsp files.
Note: this goal must always be invoked before theprocess-resources
phase, otherwise all files will be considered as uptodate.
| Nested Class Summary | |
|---|---|
static class |
ParserJspMojo.JspFileProcessor
To transform jsp files to valid xml files. |
| Nested classes/interfaces inherited from class org.nuiton.i18n.plugin.parser.impl.AbstractParserXmlMojo |
|---|
AbstractParserXmlMojo.XmlFileParser |
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected String |
coreRuleFile
Defines the core rules file used to detect i18n keys in jsp files. |
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 File |
workdir
Where to generated temporary processed files. |
| Fields inherited from class org.nuiton.i18n.plugin.parser.impl.AbstractParserXmlMojo |
|---|
BUFFER_SIZE, documentBuilderFactory, factory, namespaces, rules, userRulesFiles |
| Fields inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo |
|---|
backupGetter, cp, entries, force, oldLanguage, oldParser, showTouchedFiles, t0, treateDefaultEntry |
| 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 | |
|---|---|
ParserJspMojo()
|
|
| Method Summary | |
|---|---|
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)
|
protected boolean |
onEnterEntry(I18nSourceEntry entry)
|
| Methods inherited from class org.nuiton.i18n.plugin.parser.impl.AbstractParserXmlMojo |
|---|
getRulefiles, getUserRuleFiles, init, loadRules, loadRulesFile, newFileParser |
| Methods inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo |
|---|
addDefaultEntry, doAction, getLogEntry, getResult, isForce, isShowTouchedFiles, isStrictMode, saveGetterFile |
| 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, checkEncoding, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, 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.I18nParserConfiguration |
|---|
getLog, isSilent, isVerbose |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute, getLog, setLog |
| Field Detail |
|---|
protected File defaultBasedir
protected String defaultIncludes
protected String coreRuleFile
AbstractParserXmlMojo.userRulesFiles parameter.
protected String outputGetter
protected File workdir
| Constructor Detail |
|---|
public ParserJspMojo()
| Method Detail |
|---|
public String[] getDefaultIncludes()
getDefaultIncludes in class AbstractI18nParserMojopublic String[] getDefaultExcludes()
getDefaultExcludes in class AbstractI18nParserMojopublic File getDefaultBasedir()
getDefaultBasedir in class AbstractI18nParserMojoprotected boolean onEnterEntry(I18nSourceEntry entry)
onEnterEntry in class AbstractI18nParserMojopublic org.nuiton.io.FileUpdater newFileUpdater(SourceEntry entry)
newFileUpdater in class AbstractI18nParserMojoentry - the incoming source entry to attach to the file updater
protected String getOutGetter()
getOutGetter in class AbstractI18nParserMojoprotected String getCoreRuleFile()
getCoreRuleFile in class AbstractParserXmlMojo
protected AbstractParserXmlMojo.XmlFileParser newXmlFileParser(XPath xpath,
DocumentBuilder builder)
newXmlFileParser in class AbstractParserXmlMojo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||