Full name:

net.sourceforge.czt.dev:parsergen-maven-plugin:1.6-SNAPSHOT:generate

Description:

Goal which generates source files for different CZT parser generators by splitting the corresponding XML definition files.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
addNodes String - The parts of XML templates that will constitute the generated files.

Comma-separated list of add: nodes, e.g. to use content of <add:zeves>..</add:zeves>, use zeves here.


User property is: parsergen.addNodes.
fileExtension String - The file extension of generated files. It will be used instead of *.xml of source file.

Use this parameter to indicate whether it is Java, CUP, JFlex or other file being generated.


User property is: parsergen.fileExtension.
packageName String - The package name for generated files: the files are nested in directory matching the parser and the package property is used for XML transformer.
User property is: parsergen.packageName.
templates List - The list of ParserGen XML template directory paths.

The files in template paths are sources from which files are generated.

Potential values are filesystem paths, URLs, or classpath resources. This parameter is resolved as resource, URL, then file.


Optional Parameters

Name Type Since Description
className String - The explicit class name of generated file.

If not set, the generated file will match source template file name.


User property is: parsergen.className.
compileSource boolean - Add the output directory as compile source to the Maven project.

Use this when generating Java files using ParserGen.


Default value is: false.
User property is: parsergen.compileSource.
outputDirectory File - The directory where ParserGen should place the generated files.
Default value is: ${project.build.directory}/generated-sources/parsergen.
User property is: parsergen.outputDirectory.

Parameter Details

addNodes:

The parts of XML templates that will constitute the generated files.

Comma-separated list of add: nodes, e.g. to use content of <add:zeves>..</add:zeves>, use zeves here.

  • Type: java.lang.String
  • Required: Yes
  • User Property: parsergen.addNodes

className:

The explicit class name of generated file.

If not set, the generated file will match source template file name.

  • Type: java.lang.String
  • Required: No
  • User Property: parsergen.className

compileSource:

Add the output directory as compile source to the Maven project.

Use this when generating Java files using ParserGen.

  • Type: boolean
  • Required: No
  • User Property: parsergen.compileSource
  • Default: false

fileExtension:

The file extension of generated files. It will be used instead of *.xml of source file.

Use this parameter to indicate whether it is Java, CUP, JFlex or other file being generated.

  • Type: java.lang.String
  • Required: Yes
  • User Property: parsergen.fileExtension

outputDirectory:

The directory where ParserGen should place the generated files.
  • Type: java.io.File
  • Required: No
  • User Property: parsergen.outputDirectory
  • Default: ${project.build.directory}/generated-sources/parsergen

packageName:

The package name for generated files: the files are nested in directory matching the parser and the package property is used for XML transformer.
  • Type: java.lang.String
  • Required: Yes
  • User Property: parsergen.packageName

templates:

The list of ParserGen XML template directory paths.

The files in template paths are sources from which files are generated.

Potential values are filesystem paths, URLs, or classpath resources. This parameter is resolved as resource, URL, then file.

  • Type: java.util.List
  • Required: Yes

Back to top

Version: 1.6-SNAPSHOT. Last Published: 2016-04-09.

Reflow Maven skin by Andrius Velykis.