public class EnvHelper extends Object
| Constructor and Description |
|---|
EnvHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
asPath(Vector<String> paths,
HostDescription hd)
Converts the given vector of path elements to a path using an O/S-specific
path separator based on the host description.
|
static String |
convertHostName(String host) |
static String |
expandEnvVars(String str)
This method is for use with post-mortem tools and requires all
"environment variables" used in parsed input files to be passed
in as system properties on the tool's command line.
|
static String |
expandEnvVars(String path,
HostDescription hd)
Expands the environment variables in the path using the host description.
|
protected static Vector |
expandEnvVars(Vector<String> paths,
HostDescription hd)
Expands the environment variables in the path vector using the host
description.
|
static String |
expandPath(String path)
Expands $JTESTS in the given path using the host description and version
for this hydra client JVM.
|
protected static char |
getFileSep(HostHelper.OSType os) |
protected static String |
getOptionalProperty(String name) |
protected static char |
getPathSep(HostHelper.OSType os) |
protected static String |
getRequiredProperty(String name) |
protected static String asPath(Vector<String> paths, HostDescription hd)
protected static char getPathSep(HostHelper.OSType os)
protected static char getFileSep(HostHelper.OSType os)
public static String expandEnvVars(String str)
For $JAVA_HOME use JAVA_HOME.
For $JTESTS use JTESTS.
For $EXTRA_JTESTS use EXTRA_JTESTS.
For $GEMFIRE use gemfire.home.
$PWD automatically uses user.dir.
protected static Vector expandEnvVars(Vector<String> paths, HostDescription hd)
public static String expandPath(String path)
public static String expandEnvVars(String path, HostDescription hd)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.