legstar:generate-bean

Full name:

com.legsem.legstar:legstar-maven-plugin:3.1.0:generate-bean

Description:

Goal generates a java bean source code with cobol annotations from a COBOL copybook.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is not marked as thread-safe and thus does not support parallel builds.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
<project> MavenProject - The maven project
User Property: project

Optional Parameters

Name Type Since Description
<freeCodeFormat> boolean - True if the cobol copybooks are in free code format (not restricted to columns 8-72).
User Property: freeCodeFormat
<inputEncoding> String - The character encoding for the COBOL copybooks. If this is not specified, the default platform encoding is assumed.
User Property: inputEncoding
<outputDirectory> File - Output directory where artifacts will be placed. If the directory does not exist, it will be created.

Defaults to * target/generated-sources.


User Property: outputDirectory
<packageNamePrefix> String - The java package name prefix for generated java classes. The copybook name in lower case forms the last portion of the final package name.
User Property: packageNamePrefix
<source> File - The source can either be a single COBOL copybook file or a directory containing COBOL copybooks.

In the case where source is a directory, all files within this directory and its sub directories will be considered COBOL copybooks.

Defaults to src/main/cobol.


User Property: source
<withToString> boolean - True if the generated java beans must implement a toString method for each class and nested class.
User Property: withToString

Parameter Details

<freeCodeFormat>

True if the cobol copybooks are in free code format (not restricted to columns 8-72).
  • Type: boolean
  • Required: No
  • User Property: freeCodeFormat

<inputEncoding>

The character encoding for the COBOL copybooks. If this is not specified, the default platform encoding is assumed.
  • Type: java.lang.String
  • Required: No
  • User Property: inputEncoding

<outputDirectory>

Output directory where artifacts will be placed. If the directory does not exist, it will be created.

Defaults to * target/generated-sources.

  • Type: java.io.File
  • Required: No
  • User Property: outputDirectory

<packageNamePrefix>

The java package name prefix for generated java classes. The copybook name in lower case forms the last portion of the final package name.
  • Type: java.lang.String
  • Required: No
  • User Property: packageNamePrefix

<project>

The maven project
  • Type: org.apache.maven.project.MavenProject
  • Required: Yes
  • User Property: project

<source>

The source can either be a single COBOL copybook file or a directory containing COBOL copybooks.

In the case where source is a directory, all files within this directory and its sub directories will be considered COBOL copybooks.

Defaults to src/main/cobol.

  • Type: java.io.File
  • Required: No
  • User Property: source

<withToString>

True if the generated java beans must implement a toString method for each class and nested class.
  • Type: boolean
  • Required: No
  • User Property: withToString