创建调用存根生成器配置文件
您可以创建调用存根以识别 Rational® Application Developer 安装位置和控制 Java™ 数据绑定代码生成
开始之前
为 COBOL 调用存根生成器所生成的代码创建 Rational Application Developer 项目。
关于此任务
调用存根生成器配置文件包含用于识别 Rational Application Developer 安装位置和控制 Java 数据绑定代码生成的设置。配置文件位置由用于命令行调用的 -configFile 设置或用于 Ant 调用的 <csg> 标记中的 configFile 属性指定。
请确保配置文件中的 EclipseHome、WorkSpace 和 EclipseProjectName 必需设置对 Rational Application Developer 安装是正确的。
过程
示例
请参阅以下样本 csg.properties 调用存根生成器配置文件:
# Configuration file for COBOLCallStubGenerator
#####
# EclipseHome specifies the installation location of Rational Application Developer.
#
EclipseHome=full_path_to_Eclipse_directory
#####
# Workspace specifies the location of the Rational Application Developer workspace.
# If it does not exist, the COBOLCallStubGenerator creates the workspace.
#
WorkSpace=full_path_to_workspace_directory
######
# EclipseProjectName specifies the project in the workspace
# that will receive the generated call stubs and bindings.
#
EclipseProjectName=Eclipse_project_name
#####
# The target operating system. The permitted options are: Win32, AIX and z/OS.
#
# PARAMETER - Required
# Platform=Win32
Platform=z/OS
#####
# The target codepage.
#
# PARAMETER - Required
CodePage=IBM1047
#####
# The floating point format has only two possible values:
# IEEE 754
# IBM Hexadecimal
# The default is IEEE 54
#
# PARAMETER - Required
FloatingPointFormat=IBM Hexadecimal
# PARAMETER - Required
ExternalDecimalSign=EBCDIC
# PARAMETER - Required
Endian=Big
# PARAMETER - Required
RemoteEndian=Little
# PARAMETER - Required
Quote=DOUBLE
# PARAMETER - Required
Trunc=STD
# PARAMETER - Required
Nsymbol=DBCS
#####
# Possible values for overwriteExistingClass are true or false.
#
# PARAMETER - Required
OverwriteExistingClass=true
#####
# Possible values for GenerationStyle are:
# Default, "Preserve case of names" or "Shorten names"
# Be sure to use quotes for values with space characters in them.
#
# PARAMETER
GenerationStyle=Default
#####
# Verbose sets the trace level to "debug".
# Values for Verbose are either true or false.
#
# PARAMETER - Optional
Verbose=false
下一步做什么
运行 COBOL 调用存根生成器。您可以从命令行、Ant 任务或 Rational Application Developer 图形界面来运行调用存根生成器。
在运行 COBOL 调用存根生成器时,请指定调用存根生成器配置文件名称的标准路径。对于命令行调用,请使用 -configFile 设置来指定文件名。对于 Ant 和图形界面调用,请使用 <csg> 任务中的 configFile 属性来指定文件名。