env

Top  Previous  Next

- env <environment variable name>

 

Gets the value of the specified environment variable and assigns it to the value of the container, value or attribute. An environment variable is a system-dependent externally named value. It's the same as calling System.getenv() from the Java programming language.

 

The Schema

 

<schema packageScope="com.wickedfastsolutions.demo.domain">
    <environmentVariables>
        <homedrive env="HOMEDRIVE">C:</homedrive>
        <osname env="OS">Windows_NT</osname>
        <windir env="WINDIR">C:\Windows</windir>
    </environmentVariables>
</schema>

 

The Instance

 

<environmentVariables>
    <homedrive>C:</homedrive>
    <osname>Windows_NT</osname>
    <winDir>C:\Windows</winDir>
</environmentVariables>