12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using the iastool command-line tools<br />

iastool -gendeployable -src proj1.jar -target <strong>server</strong>side.jar<br />

genstubs<br />

Use this tool to create a stubs library file containing client or <strong>server</strong> stubs.<br />

Syntax<br />

-genstubs -src -target [-client] [-cp ]<br />

[-args ] [-javac_args ]<br />

Default Output<br />

The default output returns nothing to standard output (stdout).<br />

Options<br />

The following table describes the options available when using the genstubs tool.<br />

Option<br />

-src <br />

-target <br />

-client<br />

-cp <br />

-args <br />

-javac_args <br />

Description<br />

Specifies the JAR file (or the directory of an expanded JAR) for<br />

which you want to generate a stubs library. The full or relative<br />

path to the JAR file must be specified. There is no default.<br />

Specifies the name of the JAR file that will be generated on the<br />

localhost. The full or relative path to the JAR file(s) must be<br />

specified. There is no default.<br />

Specifies that you want to generate client-side stubs. If this option<br />

is not specified, the genstubs tool will generate <strong>server</strong>-side stubs.<br />

Specifies the classpath containing the class dependencies of the<br />

JAR file for which you want to generate a client JAR file(s). The<br />

default is none.<br />

Specifies any arguments that are needed by the file. For details,<br />

see VisiBroker for Java Developer’s Guide.<br />

Specifies any Java compiler arguments that are needed by the<br />

JAR file.<br />

Examples<br />

The following example shows how to generate a <strong>server</strong>-side stubs of the EJB JAR<br />

proj1.jar into the EJB JAR <strong>server</strong>-side.jar.<br />

iastool -genstubs -src proj1.jar -target <strong>server</strong>side.jar<br />

The following example shows how to generate a client-side stub file for the EJB JAR<br />

myproj.jar into the EJB JAR client-side.jar.<br />

iastool -genstubs -src c:\dev\proj1.jar -target<br />

-client c:\builds\client-side.jar<br />

info<br />

Use this tool to display the Java system properties for the JVM the iastool is running<br />

in.<br />

Syntax<br />

-info<br />

Default Output<br />

The default output is the current Java system properties for the JVM the iastool is<br />

running in. For example, the first few lines of output look like the following partial listing:<br />

Chapter 29: iastool command-line utility 301

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!