@Mojo(name="transform-extension-model")
public class TransformExtensionModelMojo
extends org.nuiton.plugin.AbstractPlugin
[model] modeTagValue=value modelStereotype=true [package fr.ird.observe.entities] packageTagValue=value packageStereotype=true [class fr.ird.observe.entities.CommentableEntity] classTagValue=value classStereotype=true attribute.attributeTagValue=value attribute.attributeStereotype=true
model.tagValue.modeTagValue=value model.stereotype.modelStereotype package.fr.ird.observe.entities.tagValue.packageTagValue=value package.fr.ird.observe.entities.stereotype=packageStereotype fr.ird.observe.entities.CommentableEntity.class.tagValue.classTagValue=value fr.ird.observe.entities.CommentableEntity.class.stereotype=classStereotype fr.ird.observe.entities.CommentableEntity.attribute.attribute.tagValue.attributeTagValue=value fr.ird.observe.entities.CommentableEntity.attribute.attribute.stereotype=attributeStereotype*Created on 09/09/16.
| Modifier and Type | Field and Description |
|---|---|
protected File |
directory
Where to find and generate files.
|
protected boolean |
dryRun
Display transformation result, but do not generate file.
|
protected String |
encoding
Encoding to be used for generation of files.
|
protected String |
inputFormat
The input format to read extension model.
|
protected String |
modelName
Name of model (the generated file name is
modelName.properties). |
protected String |
outputFormat
The output format to write extension model.
|
protected org.apache.maven.project.MavenProject |
project
Maven project.
|
protected boolean |
verbose
Verbose mode.
|
| Constructor and Description |
|---|
TransformExtensionModelMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAction() |
org.apache.maven.project.MavenProject |
getProject() |
protected void |
init() |
boolean |
isVerbose() |
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="modelName",
required=true)
protected String modelName
modelName.properties).@Parameter(property="inputFormat",
required=true)
protected String inputFormat
@Parameter(property="outputFormat",
required=true)
protected String outputFormat
@Parameter(property="dryRun") protected boolean dryRun
@Parameter(defaultValue="${maven.verbose}")
protected boolean verbose
@Parameter(property="eugene.directory",
defaultValue="${project.basedir}/src/main/xmi",
required=true)
protected File directory
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(property="eugene.encoding",
defaultValue="${project.build.sourceEncoding}")
protected String encoding
file.encoding.protected void init()
throws Exception
init in class org.nuiton.plugin.AbstractPluginExceptionprotected void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginExceptionpublic org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
public boolean isVerbose()
public void setVerbose(boolean verbose)
Copyright © 2006–2020 Code Lutin. All rights reserved.