use of org.sonar.home.cache.FileCacheBuilder in project sonarqube by SonarSource.
the class ScannerPluginJarExploderTest method setUp.
@Before
public void setUp() throws IOException {
userHome = temp.newFolder();
FileCache fileCache = new FileCacheBuilder(new Slf4jLogger()).setUserHome(userHome).build();
underTest = new ScannerPluginJarExploder(fileCache);
}
use of org.sonar.home.cache.FileCacheBuilder in project sonarqube by SonarSource.
the class FileCacheProvider method provide.
public FileCache provide(Settings settings) {
if (cache == null) {
String home = settings.getString("sonar.userHome");
cache = new FileCacheBuilder(new Slf4jLogger()).setUserHome(home).build();
}
return cache;
}
Aggregations