|
||||||||||
| 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.bundle.AbstractI18nBundleMojo
org.nuiton.i18n.plugin.bundle.CollectI18nArtifactsMojo
public class CollectI18nArtifactsMojo
Detects any i18n artifacts and store the result as a file.
Created: 24 déc. 2009
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
artifactMetadataSource
Artifact metadata source component. |
protected org.apache.maven.artifact.resolver.ArtifactCollector |
collector
Artifact collector component. |
protected org.apache.maven.shared.dependency.tree.DependencyTreeBuilder |
dependencyTreeBuilder
Dependency tree builder component. |
protected org.apache.maven.artifact.factory.ArtifactFactory |
factory
Artifact Factory component. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Local Repository. |
| Fields inherited from class org.nuiton.i18n.plugin.bundle.AbstractI18nBundleMojo |
|---|
collectOutputDir, collectOutputName |
| 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 | |
|---|---|
CollectI18nArtifactsMojo()
|
|
| Method Summary | |
|---|---|
protected I18nArtifact[] |
detectI18nArtifacts()
Detecte les I18nArtifact et les retourne dans l'ordre de
chargement dans le système i18n, i.e l'ordre des dependances entre
artifacts. |
protected void |
doAction()
|
protected URL[] |
getCollectI18nResources(Locale locale)
Pour obtenir les urls des fichiers i18n d'un projet (avec recherche dans ses dépendances). |
void |
init()
|
protected void |
storeCollectI18nResources(File bundleOut,
URL[] urls)
|
| Methods inherited from class org.nuiton.i18n.plugin.bundle.AbstractI18nBundleMojo |
|---|
getCollectOutputFile, getLinesAsURL |
| Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo |
|---|
addGetter, backupFile, checkBundle, checkPackaging, getArtifactId, getBackupFile, getEncoding, getGetterFile, getI18nFile, getProject, isSilent, isStrictMode, isVerbose, needGeneration, setEncoding, setProject, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, afterExecute, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, 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.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.apache.maven.shared.dependency.tree.DependencyTreeBuilder dependencyTreeBuilder
protected org.apache.maven.artifact.factory.ArtifactFactory factory
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
protected org.apache.maven.artifact.resolver.ArtifactCollector collector
| Constructor Detail |
|---|
public CollectI18nArtifactsMojo()
| Method Detail |
|---|
public void init()
throws Exception
init in class AbstractI18nMojoException
protected void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginException
protected URL[] getCollectI18nResources(Locale locale)
throws IOException,
org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException
AbstractI18nBundleMojo
getCollectI18nResources in class AbstractI18nBundleMojolocale - la locale a traiter
IOException
org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException
protected void storeCollectI18nResources(File bundleOut,
URL[] urls)
throws IOException
IOException
protected I18nArtifact[] detectI18nArtifacts()
throws IOException,
org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException
I18nArtifact et les retourne dans l'ordre de
chargement dans le système i18n, i.e l'ordre des dependances entre
artifacts.
IOException - while detecting bundles from
artifacts
org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException - if any error while building the
depencendy tree
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||