Back in February 2016, Rational Application Developer (RAD) v9.6 Beta 1 introduced the Command line Interface (CLI) tooling for developers to integrate any command line tool into RAD. In this new beta release, the existing tools were extended to support the integration with the Console view, meaning that, the output of the commands can be reviewed without leaving the workbench, this console also allows inputting data to enable communication with interactive commands.
This new functionality can be accessed from the first page of the Command Mapping wizard when creating or editing commands:
This option is selected by default, so all commands will be created with this functionality.
All encodings supported by RAD are available to be selected and used by the console when a command is executed, the encoding being used at the moment is selected by default. In the following example, a simple Ping command will be executed to show the results in the console:
As previously mentioned, the console also works with interactive commands, the same way it works on the operating system terminal. In the following example we are going to execute a command that compares two given files:
User input is displayed in a different color to distinguish it from the output of the command. Colors and other parameters can be configured from the preferences page (Window > Preferences):
In the previous v9.6 Beta release, all commands were saved at the product location, so they were available for all of your workspaces created by RAD, now, in Beta 2, you can choose the scope of the commands you create to limit their visibility depending on your needs.
In the same Command Mapping wizard, one of the following three scopes can be selected:
Commands in the Product scope will be available to all workspaces created by RAD, if Workspace scope is selected, commands will be available only to projects inside the current workspace, and finally, if Project scope is selected, commands will be visible to the selected projects, this is especially useful if you need to share the commands with a peer by exporting the project or uploading it to a Source Control Management (SCM) system as the commands will be stored inside the project.
- Rational Application Developer
- Integrating Command-Line tools in IBM Rational Application Developer for WebSphere Software
- Swift CLI and Rational Application Developer for WebSphere Software v9.6 Beta 1