Preparation of generated Java or COBOL output

Preparation is the process by which EGL technology configures the generated output for subsequent deployment on a target platform. However, the preferred process for configuring output for Rich UI applications and services is called EGL deployment, which occurs in the Workbench. For an overview of deployment, see “Introduction to EGL generation and deployment.”

After generating Java™ or COBOL code, EGL technology helps you prepare the generated output for use on the target platform. The output of preparation is as follows:

The preparation phase is controlled by the build plan that EGL created during generation. The preparation phase can include steps to do some or all of the following actions:

The build plan controls the order of output as it is sent to the build server. The build plan also controls which build scripts are run on the build server. Usually, EGL starts the build plan automatically. However, if you have set the prep build descriptor option to NO, EGL will create the build plan but not start it. You can start that build plan at a later time. You can find more information in the topic "Using a build plan after generation".

For COBOL generation, all three of the above preparation actions are always used. The output of the production phase must be placed outside the workspace using the genDirectory build descriptor option. In the preparation phase EGL transfers the generation output to the host system; then uses the build server to compile and link the output; finally, it transfers the results of the process back to the workstation that was used to generate the output. The preparation phase for COBOL has the following requirements:
For Java generation, the preparation phase can occur in several different ways depending on where you place the output of generation. You specify which method to use by setting certain build descriptor options as follows:

You can prepare code outside of the Workbench, as noted in “EGLPREP batch command utility.”

After the preparation phase, your program is ready to deploy for the runtime environment as follows: