コード例 #1
0
 private synchronized CachedStoreFactory getNewModelCache() {
   if (newModelCache == null) {
     newModelCache = new CachedStoreFactory("Resolution result");
     cleanUpLater.add(newModelCache);
   }
   return newModelCache;
 }
コード例 #2
0
 private synchronized CachedStoreFactory<TransientConfigurationResults> getOldModelCache() {
   if (oldModelCache == null) {
     oldModelCache = new CachedStoreFactory<TransientConfigurationResults>("Resolution result");
     cleanUpLater.add(oldModelCache);
   }
   return oldModelCache;
 }
コード例 #3
0
 private synchronized DefaultBinaryStore createBinaryStore(String storeKey) {
   DefaultBinaryStore store = stores.get(storeKey);
   if (store == null || isFull(store)) {
     File storeFile = temp.createTemporaryFile("gradle", ".bin");
     storeFile.deleteOnExit();
     store = new DefaultBinaryStore(storeFile);
     stores.put(storeKey, store);
     cleanUpLater.add(store);
   }
   return store;
 }