yang:generate-sources
Full name:
org.opendaylight.yangtools:yang-maven-plugin:1.1.3-SNAPSHOT:generate-sources
Description:
Generate sources from yang files using user provided set of
BasicCodeGenerators. Steps of this process:
- List yang files from yangFilesRootDir
- Process yang files using Yang Parser
- For each BasicCodeGenerator from
codeGenerators:
- Instantiate using default constructor
- Call BasicCodeGenerator.generateSources()
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope: compile.
- Binds by default to the lifecycle phase: generate-sources.
Optional Parameters
Name |
Type |
Since |
Description |
codeGenerators |
ConfigArg$CodeGeneratorArg[] |
- |
Classes implementing BasicCodeGenerator interface. An
instance will be created out of every class using default
constructor. Method
BasicCodeGenerator.generateSources() will be called on
every instance.
|
excludeFiles |
String[] |
- |
(no description)
|
inspectDependencies |
boolean |
- |
(no description) User property is: inspectDependencies.
|
yangFilesRootDir |
String |
- |
Source directory that will be recursively searched for yang files
(ending with .yang suffix).
|
yang_skip |
String |
- |
(no description) User property is: yang.skip.
|
Parameter Details
codeGenerators:
Classes implementing BasicCodeGenerator interface. An
instance will be created out of every class using default
constructor. Method
BasicCodeGenerator.generateSources() will be called on
every instance.
- Type: org.opendaylight.yangtools.yang2sources.plugin.ConfigArg$CodeGeneratorArg[]
- Required: No
excludeFiles:
(no description)
- Type: java.lang.String[]
- Required: No
inspectDependencies:
(no description)
- Type: boolean
- Required: No
- User Property: inspectDependencies
yangFilesRootDir:
Source directory that will be recursively searched for yang files
(ending with .yang suffix).
- Type: java.lang.String
- Required: No
yang_skip:
(no description)
- Type: java.lang.String
- Required: No
- User Property: yang.skip