Add Deploy Command

This topic explains how to how to create a command for deploying the current package.

Access    Analyzer | Execution Analyzer (Shift+F12) : New (Toolbar icon) > Deploy
                  Analyzer | Execution Analyzer (Shift+F12) : locate and double-click on required script > Deploy

Topics

Topic

Detail

See also

Usage

You create a script that is executed when you select the Analyzer | Deploy menu option or when you press Ctrl+Shift+Alt+F12.

 

 

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.

The output window can be displayed by selecting View | System Output.