Chapter 13 Using jagtool and jagant
Generates stubs for a package or component.
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 | 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.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 | 
This example generates EJB stubs for Package:SVU. The stubs are automatically compiled and added to the JAR file svustubs.jar:
jagtool gen_stubs -javastubtype EJB -javastubjarname e:\temp\svustubs.jar Package:SVU
<jag_gen_stubs javastubtype="EJB" javastubjarname="e:\temp\svustubs.jar" entity="Package:SVU" />
| Copyright © 2002 Sybase, Inc. All rights reserved. |   | |