Creates and deploys a Web service from a Sybase Web services JAR file.
deploy [-overwrite true | false] [-collection collectionName] [-include directory] [-classpath path] entity
<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 . |
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.
|
entity |
The file that you are deploying. entity should be located in the current directory, or provide the full path. |
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"/>