呼び出しスタブ・ジェネレーター構成ファイルの作成
呼び出しスタブを作成して、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 属性を使用してファイル名を指定します。