deploy.bat Command Line Utility Reference

Use the deploy.bat utility to deploys a deployment unit to Unwired Server with the administration client APIs.

Prerequisites: You need JDK1.6.0_10 or higher to use this utility. Also ensure that you have set JAVA_HOME environment variable to the installation location of this JDK version. Otherwise, you must use a text editor to modify the existing JDK path in the batch file itself.

Syntax

deploy.bat [deploymentUnitFileName host port loginid password mode]

Parameters

deploymentUnitFileName

Defines the file name of the deployment unit. For example, MyDeployUnit.xml.

host

Sets the host name for the Unwired Server. The default value is localhost.

port
Sets the port used for the Unwired Server. The default value is 4040.
loginid
Sets the administrator login ID used to authenticate you with the server before the package is created. The default value is supAdmin.
password
Sets the administrator password used to authenticate you with the server before the package is created. The default value is s3pAdmin.
mode
Set the deployment mode. The mode determines how deployment handles the objects in a deployment unit and/or package. Allowed values are:
Mode Description
UPDATE Updates the target package with updated objects. After deployment, objects in the server's package with the same name as those being deployed are updated.
NOCLOBBER Deploys the package only if there are no objects in the target server's package that have the same name as any of those objects being deployed.
REPLACE Replaces any of the target objects with those in the package. After deployment, the servers package contains only those objects being deployed
VERIFY Do not deploy package. Only return errors, if any. Used to determine the results of an update deploy mode.

Examples

Basic Example

The following command updates an existing deployment unit called samples/uep/deployment/customer_list_unit.xml. The batch file uses default values for all other command line options:

deploy  samples/uep/deployment/customer_list_unit.xml sup-test.sybase.com 4040 supAdmin s3pAdmin  UPDATE


Created September 17, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com