Using the bwdesign Utility
The bwdesign utility provides a command line interface for creating, validating, importing or exporting resources stored in a workspace.
- To use the bwdesign utility, open a terminal and navigate to BW_HOME\bin.
- Type: bwdesign -data <TIBCO_BusinessStudio_workspace_absolutePath>. For example, bwdesign -data C:\myWorkspace.
Command Name and Syntax | Description |
---|---|
cd SYNTAX: cd path | Changes the current working directory to the specified folder.
ARGUMENTS:
|
clear SYNTAX: clear | Clears the command line console. |
diagram:gen_diagrams SYNTAX: diagram:gen_diagrams [project] | Save each process diagram of a project in a .sgv format.
ARGUMENTS:
|
edition SYNTAX: edition | Prints out the edition of this BW Studio |
execute SYNTAX: execute file | Executes a batch script file containing a set of commands to execute in sequence.
ARGUMENTS:
|
exit SYNTAX: exit | Exits the command line console. |
generate_manifest_json SYNTAX: generate_manifest_json [options] [ear_location] [manifest_location] | Creates
manifest.json from an bw ear file.
ARGUMENTS:
|
ls SYNTAX: ls [-f|-p] [-a] | List the projects in current workspace or the files in current working directory.
ARGUMENTS:
|
pwd SYNTAX: pwd | Prints the location of the current working directory. |
quit SYNTAX: quit | Exits the command line console. |
setedition SYNTAX: setedition -name -t EXAMPLE: setedition -name test.application -t bwcf | Converts projects from their existing editions to this edition of
TIBCO Business Studio for BusinessWorks. If the option
-name is not selected this command sets the edition of all the projects in the workspace to the current edition of
TIBCO Business Studio for BusinessWorks.
Select the option -name, and provide the names of the projects to be converted. Provide comma separated values to convert multiple projects. The -t tag changes the edition to the specified edition. The values to be used for the editions are bwcf, bwe and bwcloud. Optional. If the -f option is used the following message is not prompted: Are you sure you want to change edition of the given project. |
system:create SYNTAX: system:create [options] Alternatively, you can use create command. EXAMPLE: create application test2.application test Note: This example generates test2.application for the test application module.
| Creates resource(s) in the workspace.
Options:
|
system:export SYNTAX: system:export [options] [projects] [output folder] Alternatively, you can use export command. EXAMPLE: export -ear test2.application -removeunused D:\Samples | Exports BW artifacts from the specified projects in the workspace to a folder. The artifacts can be ZIP or EAR files.
ARGUMENTS:
Options:
|
system:encrypt SYNTAX: system:encrypt [options] Alternatively, you can use encrypt command. EXAMPLE: To apply encryption settings: encrypt -app tibco.bw.sample.binding.rest.Basic.application -settings -kpath "C:\src\Encrpt_Jar\test.jks" -pwd password -kalias alice pkey password To remove encryption settings: encrypt -app tibco.bw.sample.binding.rest.Basic.application -settings -remove To apply encryption of Unixprofile in an application: encrypt -app tibco.bw.sample.binding.rest.Basic.application -profiles Unixprofile | Adds encryption to applications and encrypt profiles.
ARGUMENTS -app <app_name> - Give application project name as parameter. OPTIONS:
|
system:decrypt SYNTAX: system:decrypt [options] Alternatively, you can use decrypt command. EXAMPLE: To apply decryption of Unixprofile in an application: decrypt -app tibco.bw.sample.binding.rest.Basic.application -profiles Unixprofile | Remove encryption from profiles.
ARGUMENTS: -app <app_name> - Give application project name as parameter. OPTIONS:
|
system:import SYNTAX: system:import [options] files Alternatively, you can use import command. | Imports flat or ZIP projects into the current workspace.
ARGUMENTS:
Options:
Output: file status
|
system:importpreferences SYNTAX: system:importpreferences [options] file Alternatively, you can use importpreferences command. | Imports preferences set in the preferences file.
ARGUMENTS:
Output: file status
|
system:validate SYNTAX: system:validate [options] [modules] | Validates BW modules in the current workspace. If you don't provide any module name, by default, it validates all modules.
ARGUMENTS:
Options:
At the end of validation report, the validate command displays the number of errors and warnings for a project. |
system:clean SYNTAX: system:clean project1, project2, project3 | Cleans specific projects (all the projects if none are specified in the command) in the workspace.
Cleans project1, project2, and project3 in the workspace. |
system:delete SYNTAX: delete -f system:delete project1, project2, project3 | Deletes projects from the workspace.
-f - This parameter deletes all the projects in the workspace without any message prompts. Deletes project1, project2, and project3 from the workspace. |
system:generate_manifest_json -project SYNTAX: generate_manifest_json -project <application name present in workspace> <folder location where JSON will be created>
| This command generates a JSON file without creating an EAR file in the workspace.
|