Package org.sonar.home.cache

Examples of org.sonar.home.cache.FileCacheBuilder


  private final FileCache fileCache;
  private final ServerConnection connection;
  private final JarExtractor jarExtractor;

  Jars(ServerConnection conn, JarExtractor jarExtractor) {
    this.fileCache = new FileCacheBuilder().setLog(new StandardLog()).build();
    this.connection = conn;
    this.jarExtractor = jarExtractor;
  }
View Full Code Here


  private FileCache cache;

  public FileCache provide(Settings settings) {
    if (cache == null) {
      String home = settings.getString("sonar.userHome");
      cache = new FileCacheBuilder().setLog(new Slf4jLog(FileCache.class)).setUserHome(home).build();
    }
    return cache;
  }
View Full Code Here

  @Before
  public void before() throws IOException {
    mode = mock(AnalysisMode.class);
    userHome = temp.newFolder();
    cache = new FileCacheBuilder().setUserHome(userHome).build();
  }
View Full Code Here

  private File userHome;

  @Before
  public void setUp() throws IOException {
    userHome = temporaryFolder.newFolder();
    extractor = new BatchPluginJarInstaller(new FileCacheBuilder().setUserHome(userHome).build());
  }
View Full Code Here

TOP

Related Classes of org.sonar.home.cache.FileCacheBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.