Generates stubs and skeletons for a package or a component.
gen_stubsandskels [ connect-args | local-args ] [-javastubs true|false] [-cppstubs true|false] [-javastubtype CORBA|EJB|Jaguar1.1] [-javastubjarname filename] [-javastubcodebase path] [-cppstudcodebase path] [-compilejavastubs true|false] [-generatedependentclasses true|false] [-skels true|false] [-javaskelcodebase path] [-cppskelcodebase path] [-compilejavaskels true|false] [-pseudostubsandskels true|false] [-jdkversion 1.1|1.2] [-verbose true|false] entity
<jag_gen_stubsandskels [ javastubs="true|false" ] [ cppstubs="true|false" ] [ javastubtype="CORBA|EJB|Jaguar1.1" ] [ javastubjarname="filename" ] [ javastubcodebase="path" ] [ cppstudcodebase="path" ] [ compilejavastubs="true|false" ] [ generatedependentclasses=”true|false” ] [ skels="true|false" ] [ javaskelcodebase="path" ] [ cppskelcodebase="path" ] [ compilejavaskels="true|false" ] [ pseudostubsandskels=“true|false”] [ jdkversion="1.1|1.2" ] [ verbose="true|false" ] entity=”entity" />
Option |
Description |
Default |
Required |
---|---|---|---|
connect-args | local-args |
Arguments to specify a connection to the server or to run in local mode. See “Local versus connected mode”. |
- |
Yes |
|
Indicates whether to generate Java stubs. |
true |
No |
|
Indicates whether to generate C++ stubs. |
true |
No |
|
The type of Java stubs used. Options are:
|
CORBA |
No |
|
If this flag is used, the generated Java stubs are placed in a JAR file with the specified file name on the server host. The full path for the file name must be specified. |
- |
No |
|
The code base for Java stubs, on the server host. |
$JAGUAR/html/classes |
No |
|
The code base for C++ stubs, on the server host. |
$JAGUAR/include |
No |
|
Indicates whether to compile Java stubs. |
true |
No |
|
For EJB components that have been deployed in an EJB-JAR file, specifies whether to include additional Java classes that are referenced by the bean’s client interfaces but that are not included in the EJB-JAR file or from packages that start with java., javax. or com.sybase.ejb. |
true |
No |
|
Indicates whether to generate skeletons. |
true |
No |
|
The code base for Java skeletons, on the server host. |
$JAGUAR/java/classes |
No |
|
The code base for C++ skeletons, on the server host. |
$JAGUAR/cpplib |
No |
|
Indicates whether to compile Java skeletons. |
true |
No |
|
Indicates whether to generate direct-access stubs and skeletons for C++ and Java/CORBA pseudocomponents. Use this option if the target components run as EAServer pseudocomponents. |
false |
No |
|
Indicates the JDK version to use for compiling Java skeletons. Options are:
|
1.2 |
No |
|
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 is either “Package” or “Component.” |
- |
Yes |
Return value |
Indicates |
---|---|
0 |
The command ran successfully; the result is true/success. |
1 |
The command ran successfully; the result is false/failure. |
2 |
The command did not run successfully; an exception was thrown. |
This example generates skeletons and EJB stubs for Package:SVU. The stubs and skeletons are automatically compiled.
Command line:
jagtool gen_stubsandskels -javastubtype EJB Package:SVU
Ant build file:
<jag_gen_stubsandskels="EJB" entity="Package:SVU" />
Copyright © 2005. Sybase Inc. All rights reserved. |