Pramati Technologies

Running External Applications

Overview

Use Studio to start different executable programs existing in the system, from inside Studio. It is possible to work with the executables in a parallel process. This feature is called `Named Runs'. Named run feature eliminates the need to type long commands to run a executable file by introducing a shortcut under Build option in the Studio main menu. This chapter describes how to configure the executables and run them in Studio.

Configuring executable files

To run any external executable program inside Studio, the required information should be configured first. The maximum number of executables that can be set is nine.

To configure the named runs, select Build > Named Run Settings from the main menu or press Ctrl + Alt + N. Named Run Settings panel appears.

Enter the following information:

Adding, modifying and deleting named runs

To add a executable file use the Add button in the Named Run Settings panel. This activates the Name field.

    1. Type a name for the named run. For example, Demo.
  1. Command field has a default entry. For example, c:\j2sdk1.4.1\bin\java. Modify as required.
  2. Select an argument from the argument list. Select Show Output Panel, Hide Output Panel on Exit, and Prompt for Input options as required.

  3. Click OK. The shortcut for Demo appears under the Build menu.

To modify an existing named run:

    1. Select Build > Named Run Settings or press Ctrl+Alt+N to open the Named Run Settings panel.
  1. Select the required named run from the dropdown in the Name field.
  2. Make the required changes and click Modify.

To remove an existing named run from the list:

    1. Open the Named Run Settings panel.
  1. Select the named run to be deleted from the dropdown in the Name field and click Delete.

Argument list

Click the right arrow button to view the list of tasks that can be performed using the arguments available in Studio:

Displaying output messages

Running a named run as a parallel process introduces a tab for it in the output panel. The tab has two sections - the output panel and the Input Text field. To close the tab, right click in the panel and select Close. All output messages of the running application are displayed in the output panel. These messages cannot be edited. To clear all the messages, right click in the panel and select Clear. The Input Text field appears in the lower half of the output panel. Text entered in this field is treated as the standard input required by the program.


Pramati Technologies  © Copyright   TOCPREVNEXTINDEX