Chapter 13 Using jagtool and jagant


gen_stubsandskels

Description

Generates stubs and skeletons for a package or a component.

Syntax

Command line:

gen_stubsandskels 
[-javastubs true|false]
[-cppstubs true|false] 
[-javastubtype CORBA|EJB|Jaguar1.1] 
[-javastubjarname filename]
[-javastubcodebase path] 
[-cppstudcodebase path]
[-compilejavastubs true|false] 
[-skels true|false] 
[-javaskelcodebase path] 
[-cppskelcodebase path]
[-compilejavaskels true|false]
[-jdkversion 1.1|1.2] 
[-verbose true|false] 
entity

Ant build file:

<jag_gen_stubsandskels
[ javastubs="true|false" ]
[ cppstubs="true|false" ]
[ javastubtype="CORBA|EJB|Jaguar1.1" ]
[ javastubjarname="filename" ]
[ javastubcodebase="path" ]
[ cppstudcodebase="path" ]
[ compilejavastubs="true|false" ]
[ skels="true|false" ]
[ javaskelcodebase="path" ]
[ cppskelcodebase="path" ]
[ compilejavaskels="true|false" ]
[ jdkversion="1.1|1.2" ]
[ verbose="true|false" ]
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
skels Indicates whether to generate skeletons. true No
javaskelcodebase The code base for Java skeletons. $JAGUAR/java/classes No
cppskelcodebase The code base for C++ skeletons. $JAGUAR/cpplib No
compilejavaskels Indicates whether to compile Java skeletons. 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
verbose Indicates whether to generate verbose output. false 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 skeletons and EJB stubs for Package:SVU. The stubs and skeletons are automatically compiled.

See Also

gen_skels, gen_stubs

 


Copyright © 2002 Sybase, Inc. All rights reserved.