export

Description

Exports a Web service collection to a Sybase Web archive (WAR) file.

Syntax

Command line:

export 
[-out outputFile] 
[-component true | false] 
[-configXML true | false] 
entity

Ant build file:

<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/>
<target name="export" > <wst_antTask command="export"
[out=“outputfile”] 
[component=“true | false”] 
[configXML=“true | false”] 
entity =“entity” >

Where:

Option

Description

out

Specifies the exported archive file. Provide the complete path or the file is placed in the current directory. For a Web service collection the output is in the format of collectionName.war.

component

Set this option to true (default) if the service contained in the collection is exposed as a Jaguar component, which will export the Jaguar component related files.

configXML

Set this option to true (default) to export the sybase_easerver_config.xml file.

entity

collection:CollectionName – identifies the Web service collection you are exporting.

Examples

Example 1

This command exports MyWebServiceCollection to the MyWebServiceCollection.war file:

wstool export -out MyWebServiceCollection.war collection:MyWebCollection

Ant build example:

<wst_antTask command="export"  out="outDir" entity="collection:myCollection"/>