user manual

Chapter 29: iastool command-line utility 349
Using the iastool command-line tools
Default Output
The default output returns nothing to standard output (stdout).
Options
The following table describes the options available when using the genstubs
tool.
Examples
The following example shows how to generate a server-side stubs of the EJB
JAR proj1.jar into the EJB JAR server-side.jar.
iastool -genstubs -src proj1.jar -target serverside.jar
The following example shows how to generate a client-side stub file for the
EJB JAR myproj.jar into the EJB JAR client-side.jar.
iastool -genstubs -src c:\dev\proj1.jar -target
-client c:\builds\client-side.jar
info
Use this tool to display the Java system properties for the JVM the iastool is
running in.
Option Description
-src <input_jar> Specifies the JAR file for which you want
to generate a stubs library. The full or
relative path to the JAR file must be
specified. There is no default.
-target <output_jar> Specifies the name of the JAR file that
will be generated on the localhost. The
full or relative path to the JAR file(s) must
be specified. There is no default.
-client Specifies that you want to generate
client-side stubs. If this option is not
specified, the genstubs tool will generate
server-side stubs.
-cp <classpath> Specifies the classpath containing the
class dependencies of the JAR file for
which you want to generate a client JAR
file(s). The default is none.
-args <java2iiop_args> Specifies any arguments that are needed
by the file. For details, see the VisiBroker
for Java Developers Guide, Programmer
tools for Java section.
-javac_args <args> Specifies any Java compiler arguments
that are needed by the JAR file.