OrcaScript Commands
OrcaScript commands are not case sensitive. The generic command
parameters can include only strings delimited by quotation marks, or
predefined variables and constants without quotation marks. White space
is used to separate multiple parameters for a single command. Any place
a string is expected, a name that has been previously defined (set) in
an OrcaScript command can be used.
In the OrcaScript command prototype syntax that follows, brackets
indicate a parameter is optional. A pipe character inside angle brackets
( < | > ) indicates that a selection must be made from one of the
values inside the angle brackets. As elsewhere in the PowerBuilder
documentation, text in italic type indicates a variable.
For commands where a string variable is required by the command
syntax but is not essential to the command function (such as pbrName for
the build library command), you can use an empty string inside quotation
marks for the string value. Most of the OrcaScript commands and
parameters are self-explanatory. For usage notes and an example of an
OrcaScript batch file for obtaining a target from source control, see
Usage notes for OrcaScript commands and
parameters.
Some OrcaScript commands are for source control management, such
as connecting with the source control server, getting the latest files
from the server etc. Only a few of these OrcaScript commands are
supported by the SVN/Git solution, and their usage are explained in
Usage notes for OrcaScript source control
commands with SVN/Git.
OrcaScript commands
OrcaScript supports the following commands:
start session
end session
set name = value
set name += value
set liblist pbl_list [pbl_list …]
set appendlib pblName pbdflag
set application pblName applicationName
set debug <true |false>
set exeinfo property <companyname | productname | copyright |
description> propertyString
set exeinfo property <fileversion | fileversionnum |
productversion | productversionnum> versionString
echo value [value …]
file copy fromFile toFile [ clobberAttribute ]
file delete fileName [ clobberAttribute ]
regenerate pblName entryName entryType
copy entry pblName entryName entryType toPblName
build library pblName pbrName <pbd | 32>
build executable exeName iconName pbrName pbdflags [machinecode]
[newvstylecontrols] [x64]
build application <full | migrate | incremental |
3pass>
build project pblName projectName [ serverName serverPort logID
logPass]
create library pblName pblComments
deploy winform project pblName entryName [iconName]
scc get connect properties workspaceName
scc set connect property deletetempfiles <true
|false>
scc set connect property provider sccProvider
scc set connect property userid userID
scc set connect property password password
scc set connect property logfile logFileName
scc set connect property project projectPath
scc set connect property localprojpath localProjectPath
scc set connect property auxproject auxProjectPath
scc set connect property logappend < true | false >
scc connect [offline]
scc set target targetName
[refreshType][refreshOption][refreshOption]
scc get latest version file_list [file_list …]
scc exclude liblist pblName [ pblName …]
scc refresh target <full | migrate | incremental |
3pass>
scc close
Argument description
Arguments for OrcaScript commands are described in the table
below:
Argument |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
name |
String you define for an OrcaScript |
||||||||
value |
Value of a string that you set for the OrcaScript |
||||||||
pbl_list |
String containing the list of PBLs for the session |
||||||||
pblName |
Name of a PBL for an OrcaScript action or for the |
||||||||
pbdflag |
String of a Y or an N. “y” indicates that the Unlike pbdFlags which can be a string of
The
|
||||||||
applicationName |
Name of the application for an OrcaScript |
||||||||
true | false |
Boolean value for enabling or disabling script in |
||||||||
propertyString |
String for setting the company or product name, |
||||||||
versionString |
String for setting the product or file version |
||||||||
fromFile |
File that you want to copy during an OrcaScript |
||||||||
toFile |
File name for a file that you copy during an |
||||||||
fileName |
File that you want to delete during an OrcaScript |
||||||||
clobberAttribute |
Determines whether the file copy command overwrites Clobber File copy command overwrites NoClobber File copy command Clobber File copy command overwrites an |
||||||||
entryName |
Pointer to a string whose value is the name of the |
||||||||
entryType |
Value specifying the type of the referenced object. |
||||||||
toPblName |
Name of the PBL to which you copy an |
||||||||
pbrName |
Name of a resource file you want to include in a |
||||||||
pbd | 32 |
Select PBD to generate PowerBuilder dynamic |
||||||||
exeName |
Name of the executable you want to |
||||||||
iconName |
Name of an icon to use for an executable you build |
||||||||
pbdFlags |
String composed of a series of Y and N values for |
||||||||
machinecode |
Use to compile the project as machine |
||||||||
newvstylecontrols |
Use Microsoft XP visual style for |
||||||||
x64 |
Compile the project as a 64-bit |
||||||||
full | migrate | incremental | 3pass |
Build strategy for the session 3pass performs a full rebuild of the |
||||||||
projectName |
Name of the project object you want to build and |
||||||||
serverName |
Name of the server where you want to deploy a |
||||||||
serverPort |
Port for the server where you want to deploy a |
||||||||
logID |
Login ID for the server where you want to deploy a |
||||||||
logPass |
Login password for the server where you want to |
||||||||
pbdName |
Name of a PBD you append to an EXE. |
||||||||
pblComments |
Comments for a PBL you create in an OrcaScript |
Arguments for source control
commands
In addition to some of the arguments listed in the preceding
table, OrcaScript source control commands use the following
arguments:
Argument |
Description |
---|---|
workspaceName |
Name of the workspace to connect to source control. |
sccProvider |
Name of the source control provider. |
userID |
Name of the user registered to source |
password |
Password for the user ID. |
logFileName |
Name of a log file used to record SCC |
projectPath |
Path to the source control project. |
localProjectPath |
Local root directory for the |
auxProjectPath |
Contains any string that the SCC provider wants to |
targetName |
Name of the target for source control |
true | false |
Boolean value for appending to the source control |
offline |
Keyword indicating that an actual SCC connection |
refreshType |
Value can be: refresh_all Gets latest outofdate Performs Combining values. You can combine compatible refreshType and |
refreshOption |
Value can be: importonly Does not perform exclude_checkout Prevents |
file_list |
String containing one or more resource file names |