Type: Variable
Parent: VarSet
This is a typical variable declaration for local or global use depending on where the enclosing varset is defined.
Attention: Local variable definitions with the same name as a global variable will overwrite it!
You can use a variable with the following syntax:
${name}
| Attribute | Description | Usage |
|---|---|---|
| name | The name of the variable | required |
| value | The value of the variable | required |
1: <varset>
2: <var
3: name="template.dir"
4: value="${web.context}/examples/vi3backup"/>
5: <var
6: name="configdir.local"
7: value="/etc/"/>
8: <var
9: name="configdir.remote"
10: value="sftp://${config.username}:${config.password}@${config.hostname}${configdir.local}"/>
11: <var
12: name="vi3check.exe"
13: value="/usr/local/bin/vi3Backup_check.sh ${configdir.local}/vi3Backup.cfg"/>
14: <var
15: name="shell"
16: value="ssh://${config.username}:${config.password}@${config.hostname}"/>
17: </varset>
This example shows the most common uses of how to set and reference variables, including predefined variables by WebCFG.
top