eugene:transform-extension-model
Full name:
org.nuiton.eugene:eugene-maven-plugin:3.1-SNAPSHOT:transform-extension-model
Description:
To a transform some object model extension files from an input
format to an output format. Available formats are
Created on 09/09/16.
- ini
- properties
Example of ini format
[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
Example of properties format
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*
Attributes:
- Requires a Maven project to be executed.
- Since version:
3.0
.
Required Parameters
Name | Type | Since | Description |
---|---|---|---|
<directory> |
File |
3.0 |
Where to find and generate files. Default value is: ${project.basedir}/src/main/xmi .User property is: eugene.directory . |
<inputFormat> |
String |
3.0 |
The input format to read extension model. User property is: inputFormat . |
<modelName> |
String |
3.0 |
Name of model (the generated file name is
modelName.properties ).User property is: modelName . |
<outputFormat> |
String |
3.0 |
The output format to write extension model. User property is: outputFormat . |
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<dryRun> |
boolean |
3.0 |
Display transformation result, but do not generate file. User property is: dryRun . |
<encoding> |
String |
3.0 |
Encoding to be used for generation of files. Note: If
nothing is filled here, we will use the system property
file.encoding .Default value is: ${project.build.sourceEncoding} .User property is: eugene.encoding . |
<verbose> |
boolean |
3.0 |
Verbose mode. Default value is: ${maven.verbose} . |
Parameter Details
<directory>
Where to find and generate files.
- Type:
java.io.File
- Since:
3.0
- Required:
Yes
- User Property:
eugene.directory
- Default:
${project.basedir}/src/main/xmi
<dryRun>
Display transformation result, but do not generate file.
- Type:
boolean
- Since:
3.0
- Required:
No
- User Property:
dryRun
<encoding>
Encoding to be used for generation of files. Note: If
nothing is filled here, we will use the system property
file.encoding
.- Type:
java.lang.String
- Since:
3.0
- Required:
No
- User Property:
eugene.encoding
- Default:
${project.build.sourceEncoding}
<inputFormat>
The input format to read extension model.
- Type:
java.lang.String
- Since:
3.0
- Required:
Yes
- User Property:
inputFormat
<modelName>
Name of model (the generated file name is
modelName.properties
).- Type:
java.lang.String
- Since:
3.0
- Required:
Yes
- User Property:
modelName
<outputFormat>
The output format to write extension model.
- Type:
java.lang.String
- Since:
3.0
- Required:
Yes
- User Property:
outputFormat
<verbose>
Verbose mode.
- Type:
boolean
- Since:
3.0
- Required:
No
- Default:
${maven.verbose}