“Advanced” Configuration

This chapter presents the “standard” configuration of DMK. However the flexibility of the tool permits customizations and extensions.

Aliases & Variables Management

The following paragraphs explain how to create your own aliases and variables.

Declare an alias

Aliases are declared using the following syntax

alias::::[var|novar]_[force|noforce]::::# comment

[var|novar] var : creates automatically a variable with the name of the alias novar : doesn’t create the above variable

[force|noforce] force : if a command or an alias already exists it’s overwritten noforce: a warning is printed instead of overwriting the existing alias or command

Example of a warning printout

2012-06-22_15-31-19::DMK.pm::ComputeConfig           ::WARNING ==> %DMK_HOME%\etc\dmk.conf alias/command "u" is already in use, Please use FORCE option to override it

Declare a variable

Variable are declared using the following syntax

var::::[ =|+|-]::[ begin|end|nooption|warn|nowarn]::::

[=|+|-] = : Equal operator + : expand an existing variable - : contract, remove element from a variable

[begin|end|noption|warn|nowarn] begin/end : works only with the operators [+|-] nooption|warn : default behave print a warning in case the variable exists nowarn : disable warning and overwrites the variable

Example of a warning printout

2012-06-22_18-46-09::DMK.pm::ModifyConfigVar         ::WARNING ==> Variable  : WEBLOGIC_BASE has been overwritten
2012-06-22_18-46-09::DMK.pm::ModifyConfigVar         ::WARNING ==> Old value : "D:\app\weblogic"
2012-06-22_18-46-09::DMK.pm::ModifyConfigVar         ::WARNING ==> New value : "D:\app\oracle"

Last updated