setting-get
Command Reference
Description
Retrieve setting data
Retrieve a Setting objects properties
static: This command can be run outside of an object context.
Usage
ctl -m modelutil -c setting-get -depot <> [-description] [-format <sh>] [-isSettingValueEncrypted] -name <> [-output <>] [-settingType] [-settingValue] -type <Setting>
Options
All of the boolean parameters return the property value for the object.
Option | Description | Type | Default |
---|---|---|---|
depot | project depot name | string | ${context.depot} |
description | return the setting description | boolean | |
format |
output format: properties,sh
Recognized formats:
|
string | sh |
isSettingValueEncrypted | return the isSettingValueEncrypted | boolean | |
name | the setting name | string | |
output | output file | string | |
settingType | return the setting value type | boolean | |
settingValue | return the setting value | boolean | |
type | the setting type | string | Setting |
Examples
Retrieve the data for a setting already defined in the model.
ctl -p demo -m modelutil -c setting-get -- -name simpleTomcat-connector -type Port\ -settingValue
The data can be exported in a format compatible with the Unix bourne shell.
ctl -p demo -m modelutil -c setting-get -- -name simpleTomcat-connector -type Port\ -settingValue -format sh
SETTINGVALUE="18080"; export SETTINGVALUE