public abstract class AbstractI18nBundleMojo extends AbstractI18nMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
collectOutputDir
Directory where to generate bundles.
|
protected String |
collectOutputName
BAse name of file which contains bundles locations.
|
bundles, encoding, locales, mavenSession, project, silent, verbose| Constructor and Description |
|---|
AbstractI18nBundleMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract URL[] |
getCollectI18nResources(Locale locale)
Pour obtenir les urls des fichiers i18n d'un projet (avec recherche dans
ses dépendances).
|
protected File |
getCollectOutputFile(Locale locale,
boolean create)
Pour obtenir le fichier contenant les localisation des bundles i18n du
projet pour une
locale donnée. |
backupFile, checkBundle, checkPackaging, failsIfWarning, 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.collectOutputDir",
defaultValue="${basedir}/target/i18n",
required=true)
protected File collectOutputDir
@Parameter(property="i18n.collectOutputName",
defaultValue="collect-${project.artifactId}-i18n",
required=true)
protected String collectOutputName
protected abstract URL[] getCollectI18nResources(Locale locale) throws Exception
locale - la locale a traiterException - pour tout problèmeprotected File getCollectOutputFile(Locale locale, boolean create) throws IOException
locale donnée.locale - la localecreate - un drapeau pour forcer la création du fichier s'il n'existe
pasIOException - pour tout pbCopyright © 2007–2016 CodeLutin. All rights reserved.