Chapter 13 Using jagtool and jagant


gen_stubs

Description

Generates stubs for a package or component.

Syntax

Command line:

gen_stubs 
[-javastubs true|false] 
[-cppstubs true|false] 
[-javastubtype CORBA|EJB|Jaguar1.1] 
[-javastubjarname filename]
[-javastubcodebase path] 
[-cppstubcodebase path]
[-compilejavastubs true|false] 
[-jdkversion 1.1|1.2] 
entity

Ant build file:

<jag_gen_stubs 
[ javastubs="true|false" ]
[ cppstubs="true|false" ]
[ javastubtype="CORBA|EJB|Jaguar1.1" ]
[ javastubjarname="filename" ]
[ javastubcodebase="path" ]
[ cppstudcodebase="path" ]
[ compilejavastubs="true|false" ]
[ jdkversion="1.1|1.2" ]
entity="entity" />

Option Description Default Required
javastubs Indicates whether to generate Java stubs. true No
cppstubs Indicates whether to generate C++ stubs. true No
javastubstype The type of Java stubs used. Options are:
  • CORBA
  • EJB
  • Jaguar1.1
CORBA No
javastubjarname If this flag is used, the generated Java stubs are placed in a JAR file with the specified file name. The full path for the file name must be specified. - No
javastubcodebase The code base for Java stubs. $JAGUAR/html/classes No
cppstubcodebase The code base for C++ stubs. $JAGUAR/include No
compilejavastubs Indicates whether to compile Java stubs. true No
jdkversion Indicates the JDK version to use for compiling Java skeletons. Options are:
  • 1.1 - JDK 1.1
  • 1.2 - JDK 1.2 or later
1.2 No
entity The name of the entity for which stubs are generated, in the form EntityType:EntityName, where EntityType must be either Package or Component. - Yes

Examples

This example generates EJB stubs for Package:SVU. The stubs are automatically compiled and added to the JAR file svustubs.jar:

See Also

gen_skels, gen_stubsandskels

 


Copyright © 2002 Sybase, Inc. All rights reserved.