use of com.google.devtools.build.lib.rules.AliasProvider in project bazel by bazelbuild.
the class LabelAndConfiguration method of.
public static LabelAndConfiguration of(ConfiguredTarget configuredTarget) {
AliasProvider aliasProvider = configuredTarget.getProvider(AliasProvider.class);
Label label = aliasProvider != null ? aliasProvider.getAliasChain().get(0) : configuredTarget.getLabel();
return new LabelAndConfiguration(label, configuredTarget.getConfiguration());
}
Aggregations