Generating stubs

(CR #462838) To generate stubs for a package or component, you can use the jagtool.sh gen_stubs command. See the Automated Configuration Guide for more information about jagtool commands.

Syntax

gen_stubs [-javastubs true|false] [-cppstubs true|false]  
[-javastubjarname file-name] [-javastubcodebase path]  
[-cppstubcodebase path] [-compilejavastubs true|false] 
[-verbose true|false] entity

Option

Description

javastubs

Whether to generate Java stubs; the default is true.

cppstubs

Whether to generate C++ stubs; the default is true.

javastubjarname

If specified, the Java stubs are placed in a JAR file of the specified name. The file name must include the full path.

If not specified, Java files are generated (the default).

javastubcodebase

The location of the code base for Java stubs; the default is $DJC_HOME/genfiles/java/stubs.

cppstubcodebase

The location of the code base for C++ stubs; the default is $DJC_HOME/include.

compilejavastubs

Whether to compile the generated Java stubs; the default is true.

verbose

Whether to produce verbose output while generating stubs; the default is false.

entity

The name of the entity for which stubs are being generated, in the form EntityType:EntityName, where EntityType is either “Package” or “Component.”

Return values

Return value

Indicates

0

The command ran successfully; the result is true/success.

2

The command did not run successfully; an exception was thrown.