Prev Next

Deploy Script

These sections explain how to create a command script for deploying the current Package. The script can be executed by selecting the 'Code > Build and Run > Deploy' ribbon option or by pressing Ctrl+Shift+Alt+F12.

Access

On the Execution Analyzer window, either:

  • Locate and double-click on the required script and select the 'Deploy' page    or
  • Click on in the window Toolbar, select the Package in which to create a new script, and select the 'Deploy' page

Ribbon

Code > Configure  > Analyzer > Edit Analyzer Scripts

Execute > Run > Analyzer

Keyboard Shortcuts

Shift+F12

Actions

Action

Detail

See also

Execute Command as:

Process

If the deployment is handled externally, enter the path to the program or batch file to run, followed by any parameters; the program is launched in a separate process.

Example:

     C:\apache-ant-1.7.1\bin\ant.cmd myproject deploy

Batch File

When using this option, you can enter multiple commands that are then executed as a single script in a command console; you have access to any environment variables available in a standard command console.

Example:

     @echo on

     IF NOT EXIST "%1%" GOTO DEPLOY_NOWAR

     IF "%APACHE_HOME%" == "" GOTO DEPLOY_NOAPACHE

     xcopy /L "%1%" "%APACHE_HOME%\webapps"

     GOTO DEPLOY_END

     rem

     rem NO WAR FILE

     rem

     :DEPLOY_NOWAR

     echo "%1% WAR file not found"

     GOTO DEPLOY_END

     rem

     rem NO APACHE ENVIRONMENT VARIABLE

     rem

     :DEPLOY_NOAPACHE

     echo "APACHE_HOME environment variable not found"

     :DEPLOY_END

     pause

Parse Output

Selecting a Parser from the list causes output of the deploy script to be captured; the output is parsed according to the syntax selected from the list.

To display the System Output window, select the 'Start > Explore > Browse > System Output' ribbon option.