예제 #1
0
  @Override
  public SkyValue compute(SkyKey skyKey, Environment env) throws SkyFunctionException {
    RepositoryName repositoryName = (RepositoryName) skyKey.argument();
    Rule rule = RepositoryFunction.getRule(repositoryName, HttpArchiveRule.NAME, env);
    if (rule == null) {
      return null;
    }

    return compute(env, rule);
  }
예제 #2
0
 protected Path getExternalRepositoryDirectory() {
   return RepositoryFunction.getExternalRepositoryDirectory(directories);
 }