public class EnvarBasedValueSource extends Object implements FixedValueSource
ValueSource which resolves expressions against the environment variables
available from the underlying operating system (and possibly, the shell environment
that created the present Java process). If the expression starts with 'env.',
this prefix is trimmed before resolving the rest as an environment variable name.| Constructor and Description |
|---|
EnvarBasedValueSource()
Create a new value source for interpolation based on shell environment variables.
|
EnvarBasedValueSource(boolean caseSensitive)
Create a new value source for interpolation based on shell environment variables.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getValue(String expression,
InterpolationState interpolationState)
If the expression starts with 'env.' then trim this prefix.
|
public EnvarBasedValueSource()
throws IOException
IOExceptionpublic EnvarBasedValueSource(boolean caseSensitive)
throws IOException
caseSensitive - Whether the environment variable key should be treated in a
case-sensitive manner for lookupsIOExceptionpublic Object getValue(String expression, InterpolationState interpolationState)
ValueSource instance was created.getValue in interface FixedValueSourceexpression - envar expression, like 'HOME' or 'env.HOME'Copyright © 2001–2016 Codehaus Plexus. All rights reserved.