public abstract class AbstractI18nGenerateMojo extends AbstractI18nMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
artifactId
Name to use as prefix of generated files.
|
protected File |
out
Directory where to generate i18n files.
|
bundles, encoding, locales, mavenSession, project, silent, verbose| Constructor and Description |
|---|
AbstractI18nGenerateMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addGetter()
Prend en compte qu'un getter a été détecté.
|
protected File |
getGetterFile(File root,
String getter,
boolean create) |
protected boolean |
needGeneration() |
backupFile, checkBundle, checkPackaging, failsIfAnyKeyMissingInBundle, failsIfAnyKeyMissingValue, getBackupFile, getEncoding, getProject, init, isSilent, isVerbose, setEncoding, setProject, setVerboseacceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, checkEncoding, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, doAction, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContext@Parameter(property="i18n.artifactId",
defaultValue="${project.artifactId}",
readonly=true)
protected String artifactId
@Parameter(property="i18n.out",
defaultValue="${basedir}/target/generated-sources/i18n",
required=true)
protected File out
protected boolean needGeneration()
true si des getters ont etes enregistres pendant le
cycle de vie, false sinon.protected void addGetter()
protected File getGetterFile(File root, String getter, boolean create) throws IOException
root - le repertoire ou sont stockes les fichiers gettergetter - le nom du gettercreate - true pour creer le fichier si non presentIOException - si probleme lors de la creation du fichierCopyright © 2007–2020 CodeLutin. All rights reserved.