Package org.sonar.home.cache

Examples of org.sonar.home.cache.FileHashes


    if (batchDir.exists()) {
      Collection<File> files = FileUtils.listFiles(batchDir, HiddenFileFilter.VISIBLE, FileFilterUtils.directoryFileFilter());
      for (File file : files) {
        String filename = file.getName();
        if (StringUtils.endsWith(filename, ".jar")) {
          sb.append(filename).append('|').append(new FileHashes().of(file)).append(CharUtils.LF);
        }
      }
    }
    this.index = sb.toString();
  }
View Full Code Here


    }
  }

  private String driverIndexContent(@Nullable File deployedDriver){
    if (deployedDriver != null) {
      String hash = new FileHashes().of(deployedDriver);
      return deployedDriver.getName() + "|" + hash;
    }
    return "";
  }
View Full Code Here

    file = new RemotePluginFile(filename, hash);
    return this;
  }

  public RemotePlugin setFile(File f) {
    return this.setFile(f.getName(), new FileHashes().of(f));
  }
View Full Code Here

TOP

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

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.