org.apache.maven.properties.internal
Class EnvironmentUtils

java.lang.Object
  extended by org.apache.maven.properties.internal.EnvironmentUtils

public class EnvironmentUtils
extends Object

Assists the project builder. Warning: This is an internal utility class that is only public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted without prior notice.

Since:
3.0
Author:
Benjamin Bentmann

Constructor Summary
EnvironmentUtils()
           
 
Method Summary
static void addEnvVars(Properties props)
          Adds the environment variables in the form of properties whose keys are prefixed with env., e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentUtils

public EnvironmentUtils()
Method Detail

addEnvVars

public static void addEnvVars(Properties props)
Adds the environment variables in the form of properties whose keys are prefixed with env., e.g. env.PATH. Unlike native environment variables, properties are always case-sensitive. For the sake of determinism, the environment variable names will be normalized to upper case on platforms with case-insensitive variable lookup.

Parameters:
props - The properties to add the environment variables to, may be null.


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.