@Mojo(name="parserStruts2",
defaultPhase=GENERATE_RESOURCES)
public class ParserStruts2Mojo
extends AbstractI18nParserMojo
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ParserStruts2Mojo.Struts2JspFileParser |
| Modifier and Type | Field and Description |
|---|---|
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 File |
explodedWarPath
Exploded war Build directory (used to know if files in sources are up-to-date).
|
protected String |
outputGetter
Defines the file name of the getter where to put detected i18n keys
while getter phase.
|
acceptKeyFormat, acceptPattern, backupGetter, cp, entries, force, oldLanguage, oldParser, showTouchedFiles, src, strictMode, t0, treateDefaultEntryartifactId, outbundles, encoding, locales, mavenSession, project, silent, verbose| Constructor and Description |
|---|
ParserStruts2Mojo() |
| Modifier and Type | Method and Description |
|---|---|
File |
getDefaultBasedir() |
String[] |
getDefaultExcludes() |
String[] |
getDefaultIncludes() |
protected String |
getOutGetter() |
FileParser |
newFileParser(Pattern acceptPattern) |
org.nuiton.io.FileUpdater |
newFileUpdater(SourceEntry entry) |
addDefaultEntry, doAction, getLogEntry, getResult, init, 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/webapp")
protected File defaultBasedir
@Parameter(property="i18n.defaultIncludes",
defaultValue="**/*.jsp",
required=true)
protected String defaultIncludes
@Parameter(property="i18n.outputGetter",
defaultValue="struts2.getter")
protected String outputGetter
@Parameter(property="i18n.explodedWarPath",
defaultValue="${project.build.directory}/${project.artifactId}-{project.version}")
protected File explodedWarPath
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 AbstractI18nParserMojopublic FileParser newFileParser(Pattern acceptPattern)
newFileParser in class AbstractI18nParserMojoacceptPattern - optional pattern to accept incoming keysCopyright © 2007–2016 CodeLutin. All rights reserved.