Search in sources :

Example 1 with FileCacheBuilder

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);
}
Also used : FileCacheBuilder(org.sonar.home.cache.FileCacheBuilder) ScannerPluginJarExploder(org.sonar.scanner.bootstrap.ScannerPluginJarExploder) Slf4jLogger(org.sonar.scanner.bootstrap.Slf4jLogger) FileCache(org.sonar.home.cache.FileCache) Before(org.junit.Before)

Example 2 with FileCacheBuilder

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;
}
Also used : FileCacheBuilder(org.sonar.home.cache.FileCacheBuilder)

Aggregations

FileCacheBuilder (org.sonar.home.cache.FileCacheBuilder)2 Before (org.junit.Before)1 FileCache (org.sonar.home.cache.FileCache)1 ScannerPluginJarExploder (org.sonar.scanner.bootstrap.ScannerPluginJarExploder)1 Slf4jLogger (org.sonar.scanner.bootstrap.Slf4jLogger)1