deploy (2)  disallowMethods

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

deploy (3)

Description

Creates and deploys a Web service collection from a Sybase Web services WAR file.

Syntax

Command line:

deploy 
[-overwrite true | false] 
[-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”] 
[include=“directory”] 
[classpath= “path”] 
entity =“file” >

Where:

Option

Description

overwrite

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

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 collection contained in the MyWebServiceCollection.war file:

wstool deploy MyWebServiceCollection.war

Ant build example:

<wst_antTask command="deploy" entity="d:\wstool\test\deploy\collection.war"/>




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