public interface Env
Adapter for simple variable substitution of the form ${var} as commonly found in ant. The substitutions include both System.getenv() and System.getProperties()
For example:
props.put("user.dir", "${user.dir}"
System.out.println(props.get("user.dir"));
// outputs C:/Users/dave
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
antStyleVarPattern |
| Modifier and Type | Method and Description |
|---|---|
static Env |
instance(Properties props) |
String |
resolve(String key) |
static final Pattern antStyleVarPattern
static Env instance(Properties props)
Copyright © 2011–2018 David R. Smith. All rights reserved.