@Mojo(name="parserTapestry",
defaultPhase=GENERATE_RESOURCES)
public class ParserTapestryMojo
extends AbstractI18nParserMojo
${message:XXX} and ${format:XXX=...}.
Note: this goal must always be invoked before the process-resources
phase, otherwise all files will be considered as uptodate.| Modifier and Type | Class and Description |
|---|---|
protected class |
ParserTapestryMojo.TapestryFileParser
Deprecated.
|
static class |
ParserTapestryMojo.TapestryFileProcessor
Deprecated.
To Extract i18n keys from tapestry template files.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_INCLUDES
Deprecated.
|
protected File |
defaultBasedir
Deprecated.
Root directory of the default entry.
|
protected String |
defaultIncludes
Deprecated.
Default included files to process (ant-like expression).
|
protected org.nuiton.io.MirroredFileUpdater |
entryUpdater
Deprecated.
|
protected String |
outputGetter
Deprecated.
Defines the file name of the getter where to put detected i18n keys
while getter phase.
|
protected File |
workdir
Deprecated.
Where to generated temporary processed files.
|
acceptKeyFormat, acceptPattern, backupGetter, cp, entries, force, oldLanguage, oldParser, showTouchedFiles, t0, treateDefaultEntryartifactId, bundles, encoding, genSrc, locales, out, project, silent, src, strictMode, verbose| Constructor and Description |
|---|
ParserTapestryMojo()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getDefaultBasedir()
Deprecated.
|
String[] |
getDefaultExcludes()
Deprecated.
|
String[] |
getDefaultIncludes()
Deprecated.
|
protected String |
getOutGetter()
Deprecated.
|
FileParser |
newFileParser(Pattern acceptPattern)
Deprecated.
|
org.nuiton.io.FileUpdater |
newFileUpdater(SourceEntry entry)
Deprecated.
|
protected boolean |
onEnterEntry(I18nSourceEntry entry)
Deprecated.
|
addDefaultEntry, doAction, getLogEntry, getResult, init, isForce, isShowTouchedFiles, isStrictMode, saveGetterFileaddGetter, backupFile, checkBundle, checkPackaging, getArtifactId, getBackupFile, getEncoding, getGetterFile, getI18nFile, getProject, isSilent, isVerbose, needGeneration, 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, 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",
required=true)
protected File defaultBasedir
@Parameter(property="i18n.defaultIncludes",
defaultValue="**/*.tml",
required=true)
protected String defaultIncludes
@Parameter(property="i18n.outputGetter",
defaultValue="tapestry.getter",
required=true)
protected String outputGetter
@Parameter(property="i18n.workdir",
defaultValue="${basedir}/target/i18n-workdir")
protected File workdir
protected org.nuiton.io.MirroredFileUpdater entryUpdater
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 updaterprotected String getOutGetter()
getOutGetter in class AbstractI18nParserMojopublic FileParser newFileParser(Pattern acceptPattern)
newFileParser in class AbstractI18nParserMojoacceptPattern - optional pattern to accept incoming keysCopyright © 2007-2013 CodeLutin. All Rights Reserved.