deploy (1)  deploy (3)

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

deploy (2)

Description

Creates and deploys a Web service from a Sybase Web services JAR file.

Syntax

Command line:

deploy 
[-overwrite true | false] 
[-collection collectionName] 
[-include directory] 
[-classpath path] 
entity

Ant build file:

<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/>
<target name="deploy" > <wst_antTask command="deploy"
[overwrite=“true | false”] 
[collection=“collectionName”] 
[include=“directory”] 
[classpath= “path”] 
entity =“file” >

Where:

Option

Description

overwrite

If set to true, overwrites an existing Web service if it has the same service name. The default is false.

collection

Specifies the collection name, if you are deploying a JAR file . ws is the default Web collection.

include

Specifies the directory that contains any dependent classes. For example:

d:\foo

This option must be in quotes.

classpath

Specifies additional JARs/classes to set in classpath.

NoteJARs must be specified in quotes.

entity

The file that you are deploying. entity should be located in the current directory, or provide the full path.

Examples

Example 1

This example deploys the Web service contained in the MyWebService.jar file:

wstool deploy MyWebService.jar

Ant build example:

<wst_antTask command="deploy" entity="d:\wstool\test\deploy\service.jar"/>




Copyright © 2005. Sybase Inc. All rights reserved. deploy (3)