exposeComponent  isActive

Chapter 8: Using wstool, wstkeytool, wstant, and wstkeytoolant

getTMjar

Description

Creates a JAR file that contains type mappings identified by the class option and associates it with an entity for which the type mapping is needed.

Syntax

Command line:

getTMjar 
[-class classname] 
[-outJar jarFile] 
[-overwrite true | false] 
entity

Ant build file:

<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/>
<target name="getTMjar" > <wst_antTask command="getTMjar"
[class=“classname”] 
[outjar=“jarFile”] 
[overwrite=“true | false”] 
entity =“entity” >

Where:

Option

Description

class

The name of the class for which the type mapping JAR is needed.

outJar

The name of the JAR to be used for the output of the class. The default is className.jar

overwrite

overwrites the JAR, if it already exists. The default is not to overwrite.

entity

Service:CollectionName/ServiceName – identifies the Web service that requires the type mappings contained in the JAR.

Examples

Example 1

This command creates a testclass.jar file that contains the type mappings contained in testclass and required by MyWebService:

wstool getTMjar -class testclass -outjar testclass.jar Service:MyWebServiceCollection/MyWebService

Ant build example:

<wst_antTask command="getTMjar"  class="myPkg.mysampleClass" entity="service:myCollection/myService"/>




Copyright © 2005. Sybase Inc. All rights reserved. isActive