Creating and Deploying a Package From the Command Line - Sybase Unwired WorkSpace Eclipse Edition

After installation, the DeployUtilitySample directory (for example: C:\Sybase\UnwiredPlatform-1_2\Servers\UnwiredServer\DeployUtilitySample) contains two sample .bat files that can be used to create and deploy a package of MBOs, as an alternative to using Sybase Unwired WorkSpace.

Prerequisites Unwired Server must be running and available before you deploy mobile deployment packages. A JDK version 1.6 or higher must be installed on the machine from which you are packaging and deploying.

Refer to the Readme file in this directory for instructions on the use of the package.bat and deploy.bat files.

  1. From Unwired WorkSpace, create a mobile deployment package that contains the MBOs you want to deploy. There are several methods you can use (for example, select File > New > Mobile Deployment Package), as long as the result is a deployment package (a file with a .suppkgdef extension) in the mobile application's project Deployment subfolder.
  2. Build the deployment package. From WorkSpace Navigator, expand the Project folder and Deployment folder, right-click .suppkgdef and select Build Package (Full). The build process generates a file named <deployment_name>.suppkg.zip, where <deployment_name> is the name of the deployment package, that contains two files:
    • deployment_descriptor.xml
    • deployment_unit.xml
  3. Unzip the <deployment_name>.suppkg.zip file. You need only the deployment_unit.xml file for command line package and deployment.
  4. Modify the deployment_unit.xml file as needed. For example, to change the package name to provide version information, change: package_name="CustomerTest_1.0.0"
  5. Create the package from the command line. Go to the directory where package.bat resides and run:
    package <packagename> <host> <port> <loginid> <password>
  6. Deploy the package name that contains the deployment_unit.xml file. Go to the directory where deploy.bat resides and run:
    deploy <deploymentUnitFileName> <host> <port> <loginid> <password> <deployMode>


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