コード例 #1
0
ファイル: SymlinkTreeAction.java プロジェクト: endobson/bazel
 @Override
 protected String computeKey() {
   Fingerprint f = new Fingerprint();
   f.addString(GUID);
   f.addInt(filesetTree ? 1 : 0);
   return f.hexDigestAndReset();
 }
コード例 #2
0
ファイル: Environment.java プロジェクト: anthonylauzon/bazel
 /**
  * Returns a hash code calculated from the hash code of this Environment and the transitive
  * closure of other Environments it loads.
  */
 public String getTransitiveContentHashCode() {
   // Calculate a new hash from the hash of the loaded Extension-s.
   Fingerprint fingerprint = new Fingerprint();
   fingerprint.addString(Preconditions.checkNotNull(fileContentHashCode));
   TreeSet<String> importStrings = new TreeSet<>(importedExtensions.keySet());
   for (String importString : importStrings) {
     fingerprint.addString(importedExtensions.get(importString).getTransitiveContentHashCode());
   }
   return fingerprint.hexDigestAndReset();
 }
コード例 #3
0
 @Override
 protected String computeKey() {
   Fingerprint f = new Fingerprint();
   f.addString(GUID);
   f.addString(String.valueOf(makeExecutable));
   f.addString(template.getKey());
   f.addInt(substitutions.size());
   for (Substitution entry : substitutions) {
     f.addString(entry.getKey());
     f.addString(entry.getValue());
   }
   return f.hexDigestAndReset();
 }