@Mojo(name="generate-config",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class GenerateApplicationConfigMojo
extends org.nuiton.plugin.AbstractPlugin
implements org.nuiton.plugin.PluginWithEncoding
| Modifier and Type | Class and Description |
|---|---|
protected class |
GenerateApplicationConfigMojo.JavaParserVisitor |
| Modifier and Type | Field and Description |
|---|---|
protected String |
encoding
Encoding to be used for generation of files.
|
protected ObjectModelImpl |
model |
protected String |
prefix |
protected org.apache.maven.project.MavenProject |
project
Maven project.
|
protected ApplicationConfigTransformer |
template |
protected boolean |
verbose
Pour activer le mode verbeux.
|
| Constructor and Description |
|---|
GenerateApplicationConfigMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAction() |
String |
getEncoding() |
org.apache.maven.project.MavenProject |
getProject() |
protected void |
init() |
boolean |
isVerbose() |
void |
setEncoding(String encoding) |
void |
setProject(org.apache.maven.project.MavenProject project) |
void |
setVerbose(boolean verbose) |
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkEncoding, checkPackaging, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContext@Parameter(property="eugene.verbose",
defaultValue="${maven.verbose}")
protected boolean verbose
@Parameter(property="eugene.encoding",
defaultValue="${project.build.sourceEncoding}")
protected String encoding
file.encoding.@Parameter(property="eugene.prefix",
defaultValue="Config")
protected String prefix
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
protected ObjectModelImpl model
protected ApplicationConfigTransformer template
protected void init()
throws Exception
init in class org.nuiton.plugin.AbstractPluginExceptionprotected void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginExceptionpublic boolean isVerbose()
isVerbose in interface org.nuiton.plugin.Pluginpublic void setVerbose(boolean verbose)
setVerbose in interface org.nuiton.plugin.Pluginpublic org.apache.maven.project.MavenProject getProject()
getProject in interface org.nuiton.plugin.Pluginpublic String getEncoding()
getEncoding in interface org.nuiton.plugin.PluginWithEncodingpublic void setEncoding(String encoding)
setEncoding in interface org.nuiton.plugin.PluginWithEncodingpublic void setProject(org.apache.maven.project.MavenProject project)
setProject in interface org.nuiton.plugin.PluginCopyright © 2006–2016 CodeLutin. All rights reserved.