use of com.facebook.buck.parser.BuildTargetPatternTargetNodeParser in project buck by facebook.
the class AbstractCommand method parseArgumentsAsTargetNodeSpecs.
public ImmutableList<TargetNodeSpec> parseArgumentsAsTargetNodeSpecs(BuckConfig config, Iterable<String> targetsAsArgs) {
ImmutableList.Builder<TargetNodeSpec> specs = ImmutableList.builder();
CommandLineTargetNodeSpecParser parser = new CommandLineTargetNodeSpecParser(config, new BuildTargetPatternTargetNodeParser());
for (String arg : targetsAsArgs) {
specs.addAll(parser.parse(config.getCellPathResolver(), arg));
}
return specs.build();
}
Aggregations