org.codehaus.plexus.interpolation
public class EnvarBasedValueSource extends AbstractValueSource
Version: $Id: EnvarBasedValueSource.java 8252 2009-06-05 00:13:00Z igorife $
Constructor Summary | |
---|---|
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.
|
Method Summary | |
---|---|
Object | getValue(String expression)
If the expression starts with 'env.' then trim this prefix. |
Throws: IOException
Parameters: caseSensitive Whether the environment variable key should be treated in a case-sensitive manner for lookups
Throws: IOException
Parameters: expression envar expression, like 'HOME' or 'env.HOME'
Returns: the environment variable value for the given expression