genProject

The build descriptor option genProject places the output of Java generation into a Workbench project and automates tasks that are required for Java run-time setup. For details on that setup and on the benefits of using genProject, see Generation of Java code into a project.

To use genProject, specify the project name. EGL then ignores the build descriptor options buildPlan, genDirectory, and prep, and preparation occurs in either of two cases:

If you set the option genProject to the name of a project that does not exist in the workbench, EGL uses the name to create a Java project, except in these cases:

In addition to creating a project, EGL does as follows:

When you are generating in the Workbench or from the Workbench batch interface, the following rules apply:

For Java generation

You are not required to specify either genProject or genDirectory. If neither is specified, Java output is generated into the project that contains the EGL source file being generated.

If you are generating a page handler, and the project specified exists, then the project must be an EGL Web project. If you are generating a session EJB, and the project specified exists, then the project must be an EJB project.

For COBOL generation

You must specify genDirectory, and EGL ignores any setting for genProject.

If you are generating from the EGL SDK, the following rules apply:

Related concepts
Generation from the EGL Software Development Kit (SDK)
Generation from the workbench batch interface
Generation in the workbench
Generation of Java code into a project

Related tasks

Related reference
Build descriptor options
buildPlan
genDirectory
prep
type in callLink element