Upgrading an Application Using a Deployment Script

You can upgrade and existing application using the scripted deployment techniques.

Procedure

  1. In the Deploy Project Editor for an existing deployment project, select the resources that you want to upgrade. For each one, set the Deploy Action to Upgrade.
  2. Regenerate the deployment scripts, as described in Generating the Deployment Scripts.
  3. Check the value in the run.properties file. Set default.target either to deploy or to import-and-deploy, depending on whether or not you are importing your deployment scripts from a source control repository. See Deploying the Project for further details.
  4. From a command line, run the build.xml file to deploy the projects on a test server, as described in Deploying the Project.

    The deploy or import-and-deploy command performs the deployment action specified for each resource. If you have specified this as Upgrade, as in step 1 above, this will be to delete the old version of the application from the BPM server and replace it with the upgraded version.