Example #1
0
 @Override
 public ImmutableSet<QueryTarget> getFileOwners(ImmutableList<String> files)
     throws InterruptedException, QueryException {
   try {
     AuditOwnerCommand.OwnersReport report =
         AuditOwnerCommand.buildOwnersReport(
             params, parserConfig, buildFileTree, files, /* guessForDeletedEnabled */ false);
     return getTargetsFromBuildTargetsContainer(report.owners.keySet());
   } catch (BuildFileParseException | BuildTargetException | IOException e) {
     throw new QueryException("Could not parse build targets.\n%s", e.getMessage());
   }
 }