Description
When you start PowerBuilder from a command line (or the Windows Run dialog box), you can specify the workspace and target to be opened in addition to existing options such as the painter or object to be opened. You can now also deploy or do a full or incremental build of the specified workspace. You need to specify build and deploy options for the workspace in PowerBuilder before you start a build from the command line. Deploy builds the projects in the target in the order listed on the Deploy page of the target's property sheet.
When you deploy or build a workspace, PowerBuilder exits as soon as the operation is completed. To retain a log file for the session, you can send the contents of the Output window to a file.
Usage
The following options are now available
:
|
Option
|
Description
|
|
/workspace workspacepath
|
Open the workspace workspacepath
|
|
/target targetpath
|
Open the target targetpath
|
|
/deploy
|
Deploy the workspace and exit
|
|
/fullbuild
|
Fully build the workspace and exit
|
|
/incrementalbuild
|
Incrementally build the workspace and exit
|
|
/output outputpath
|
Log the contents of the Output window to outputpath
|
|
As with other command-line options, you need only use the initial letter or letters of the option name as long as the option is uniquely identified. The deploy, fullbuild, and incrementalbuild options can only be used with the workspace option.
Examples
These examples assume that you are running the command from the folder where the PowerBuilder 8 executable file is installed.
This example opens the workspace called CDShop, builds and deploys the targets in the workspace according to your specifications in the workspace and target properties, records the content of the Output window in the file D:\tmp\cdshop.out, and exits PowerBuilder:
pb80 /w D:\CDShop\CDShop.pbw /d /ou D:\tmp\cdshop.out
This example starts a PowerBuilder session by opening the Window painter in the Client PBL in the Math workspace. The output of the session is sent to a file called math.log. The workspace file, the PBL, and the log file are all in the current directory:
pb80 /w Math.pbw /l Client.pbl /p window /out math.log |