> ScriptRunner.exe <launch configuration file> <1st argument> <2nd argument>, and so on. |
> ScriptRunner <launch configuration file> <1st argument> <2nd argument>, and so on. |
<?xml version="1.0" encoding="Shift_JIS"?> <scriptrunner> <connection> <host>localhost</host> <port>7700</port> <ssl>false</ssl> <description>Execute from ScriptRunner.</description></description> <user>root</user> <password>password</password> </connection> <params> <param project="root@project" script="script"> <input key="var">value</input> <option key="TYPE">production</option> <option key="ENABLE_TYPE_SWITCH">false</option> <option key="ENABLE_XML_LOG">true</option> <option key="LOG_LEVEL">FINFO</option> </param> </params> </scriptrunner> |
Element | Attribute | Required / Optional | Description | Remarks |
---|---|---|---|---|
scriptrunner | - | Required | ||
connection | - | Required | Specify connection information as the element's value.Appears only once in the scriptrunner element | |
host | - | Optional | Specify DataSpiderServer's hostname or its IP address.The value defaults to 127.0.0.1 if it is omitted. | |
port | - | Optional | Specify DataSpiderServer port.Defaults to 7700 if omitted.![]() |
|
ssl | - | Optional | Specify whether to use https connection with DataSpiderServer or not.
![]() |
|
description | - | Optional | Specify session information when executing ScriptRunner.The information specified here is shown in [Session]-[Description] in "Task Manager" in Control Panel. | |
user | - | Required | user executing script | |
password | - | Required | user's password executing script | |
encrypt | Optional | Whether to encrypt the value set to the password element.
![]() ![]() |
||
params | - | Required | ||
param | - | Required | Each param element encompasses properties necessary to launch a script.The params element can have multiple param elements. | |
project | Required | Specify a service name.The default string format to specify a service is <user>@<project name> | ||
script | Required | Specify the name of the script | ||
input | - | Optional | Specify arguments that are passed to the script.Arguments are expressed as a <key>-<value> pair. <param> element can have multiple <input> elements | |
key | Required | Specify the argument name.It must much the argument name that the script expects. | ||
option | - | Optional | Specify optional arguments that are passed to the script.Arguments are expressed as a <key>-<value> pair. <param> element can have multiple <option> elements.
![]() |
|
key | Required | Specify the option's name. |
Variable Type | Default | Remarks |
---|---|---|
String | Empty string | |
Integer | 0 | The value which is not an integer such as a string defaults to "0". |
Decimal | 0 | The value which is not a decimal such as a string defaults to "0". |
Date/Time | 1970-01-01T09:00:00.000+0900 | |
Boolean | false | |
Binary | null | |
XML | Empty string |
Key | Value | Description | Remarks |
---|---|---|---|
TYPE | - | Type used at runtime. | |
default | Uses "Default" type at runtime. Also when TYPE is not explicitly specified, "Default" is used at runtime. |
||
test | Uses "Test" type at runtime. | ||
production | Uses "Production" type at runtime. | ||
<User-specified type> | Uses the type defined by user at runtime. | ||
ENABLE_TYPE_SWITCH | - | Whether to fallback to default type or not, in case the global resource of the specified type is missing. | |
true | use default type | ||
false | Report an error Default behavior when ENABLE_TYPE_SWITCH is not explicitly specified. |
||
ENABLE_XML_LOG | - | Specify whether to enable XML Log or not | |
true | XML Log is enabled | ||
false | XML Log is not enabled(default) | ||
LOG_LEVEL | - | Specify Log Level | |
NOTICE | Logs severe errors that cause premature termination or unexpected conditions that are critical.(default) | ||
INFO | Logs informative runtime events occurred but the messages are kept at its minimum. | ||
FINFO | Logs informative runtime events occurred. | ||
FINEST | Shows more detailed messages than FINFO Log Level. | ||
DEBUG | Provides messages useful for debugging. |
<?xml version="1.0" encoding="Shift_JIS"?> <scriptrunner> <connection> <host>%{1}</host> <port>%{2}</port> <ssl>false</ssl> <description>Execute from ScriptRunner.</description></description> <user>root</user> <password>password</password> </connection> <params> <param project="root@project" script="%{3}"> <input key="var">%{4}</input> <option key="TYPE">production</option> <option key="ENABLE_TYPE_SWITCH">false</option> <option key="ENABLE_XML_LOG">true</option> <option key="LOG_LEVEL">FINFO</option> </param> </params> </scriptrunner> |
> ScriptRunner.exe <launch configuration file> localhost 7700 script value |
> echo %errorlevel% |
$ echo $? |
% echo $status |
> ScriptRunner.exe -e <src> <dst> |
> ScriptRunner -e <src> <dst> |
> ScriptRunner.exe scriptrunner.xml \" \" |