public class EnvHelper
extends java.lang.Object
| Constructor and Description |
|---|
EnvHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
asPath(java.util.Vector<java.lang.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 java.lang.String |
convertHostName(java.lang.String host) |
static java.lang.String |
expandEnvVars(java.lang.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 java.lang.String |
expandEnvVars(java.lang.String path,
HostDescription hd)
Expands the environment variables in the path using the host description.
|
protected static java.util.Vector |
expandEnvVars(java.util.Vector<java.lang.String> paths,
HostDescription hd)
Expands the environment variables in the path vector using the host
description.
|
static java.lang.String |
expandPath(java.lang.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 java.lang.String |
getOptionalProperty(java.lang.String name) |
protected static char |
getPathSep(HostHelper.OSType os) |
protected static java.lang.String |
getRequiredProperty(java.lang.String name) |
protected static java.lang.String getOptionalProperty(java.lang.String name)
protected static java.lang.String getRequiredProperty(java.lang.String name)
public static java.lang.String convertHostName(java.lang.String host)
protected static java.lang.String asPath(java.util.Vector<java.lang.String> paths,
HostDescription hd)
protected static char getPathSep(HostHelper.OSType os)
protected static char getFileSep(HostHelper.OSType os)
public static java.lang.String expandEnvVars(java.lang.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 java.util.Vector expandEnvVars(java.util.Vector<java.lang.String> paths,
HostDescription hd)
public static java.lang.String expandPath(java.lang.String path)
public static java.lang.String expandEnvVars(java.lang.String path,
HostDescription hd)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.