public class RemoteExecutionUtil extends Object
Modifier and Type | Method and Description |
---|---|
protected static boolean |
doTargetsMatchProjectWhitelist(com.google.common.collect.ImmutableSet<String> buildTargets,
com.google.common.collect.ImmutableSet<String> projectWhitelist)
Checks whether the given targets match the RE project whitelist
|
static boolean |
doTargetsMatchProjectWhitelist(List<String> commandArgs,
com.google.common.collect.ImmutableSet<String> projectWhitelist,
BuckConfig buckConfig)
Checks whether the given target command line arguments match the RE project whitelist
|
static Optional<String> |
getCommonProjectPrefix(List<String> commandArgs,
BuckConfig buckConfig)
Given a list of targets, determines if they all share a common prefix, and if they do then
returns it.
|
public static boolean doTargetsMatchProjectWhitelist(List<String> commandArgs, com.google.common.collect.ImmutableSet<String> projectWhitelist, BuckConfig buckConfig)
public static Optional<String> getCommonProjectPrefix(List<String> commandArgs, BuckConfig buckConfig)