use of com.google.devtools.build.lib.bazel.repository.RepositoryOptions in project bazel by bazelbuild.
the class BazelRepositoryModule method handleOptions.
@Override
public void handleOptions(OptionsProvider optionsProvider) {
PackageCacheOptions pkgOptions = optionsProvider.getOptions(PackageCacheOptions.class);
isFetch.set(pkgOptions != null && pkgOptions.fetch);
RepositoryOptions repoOptions = optionsProvider.getOptions(RepositoryOptions.class);
if (repoOptions != null) {
if (repoOptions.experimentalRepositoryCache != null) {
Path repositoryCachePath = filesystem.getPath(repoOptions.experimentalRepositoryCache);
repositoryCache.setRepositoryCachePath(repositoryCachePath);
} else {
repositoryCache.setRepositoryCachePath(null);
}
}
}
Aggregations