Class Resolver
- java.lang.Object
-
- hudson.plugins.project_inheritance.util.Resolver
-
public class Resolver extends Object
-
-
Constructor Summary
Constructors Constructor Description Resolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
getEnvFor(AbstractBuild<?,?> build, TaskListener log)
static String
joinWithCommas(String... in)
Takes multiple strings, protects commas as '\,' and then joins them, separated with ', '.static String[]
resolve(VariableResolver<String> resolver, String... in)
static String[]
resolve(Map<String,String> map, String... in)
static String
resolveSingle(VariableResolver<String> resolver, String in)
static String
resolveSingle(Map<String,String> map, String in)
static String[]
splitCommas(String in)
This takes a comma-separated string and splits it into discrete Strings.
-
-
-
Method Detail
-
resolve
public static String[] resolve(VariableResolver<String> resolver, String... in)
-
resolveSingle
public static String resolveSingle(VariableResolver<String> resolver, String in)
-
getEnvFor
public static Map<String,String> getEnvFor(AbstractBuild<?,?> build, TaskListener log)
-
splitCommas
public static String[] splitCommas(String in)
This takes a comma-separated string and splits it into discrete Strings. You can protect commas as '\,' to prevent splitting it there.- Parameters:
in
- the string to split apart- Returns:
- an array of split strings.
-
-