Beispiel #1
0
 @Override
 public ImmutableCollection<BuildRule> getDeps(SourcePathResolver pathResolver) {
   try {
     return expander.extractBuildTimeDeps(target, cellNames, resolver, unexpanded);
   } catch (MacroException e) {
     throw new HumanReadableException(e, "%s: %s", target, e.getMessage());
   }
 }
Beispiel #2
0
 @Override
 public void appendToCommandLine(ImmutableCollection.Builder<String> builder) {
   try {
     builder.add(expander.expand(target, cellNames, resolver, filesystem, unexpanded));
   } catch (MacroException e) {
     throw new HumanReadableException(e, "%s: %s", target, e.getMessage());
   }
 }
Beispiel #3
0
 @Override
 public RuleKeyBuilder appendToRuleKey(RuleKeyBuilder builder) {
   try {
     return builder
         .setReflectively("arg", unexpanded)
         .setReflectively(
             "macros",
             expander.extractRuleKeyAppendables(target, cellNames, resolver, unexpanded));
   } catch (MacroException e) {
     throw new HumanReadableException(e, "%s: %s", target, e.getMessage());
   }
 }