MCPcopy
hub / github.com/alibaba/freeline / _fill_cache_map

Method _fill_cache_map

freeline_core/gradle_tools.py:236–248  ·  view source on GitHub ↗
(self, all_modules)

Source from the content-addressed store, hash-verified

234 self._save_cache()
235
236 def _fill_cache_map(self, all_modules):
237 for module in all_modules:
238 self.debug('save {} module file stat'.format(module['name']))
239 self._stat_cache[module['name']] = {}
240 self._save_module_stat(module['name'], module['path'])
241
242 root_config_path = os.path.join(os.getcwd(), 'build.gradle')
243 md5 = get_md5(root_config_path)
244 self._stat_cache[root_config_path] = {'md5': md5}
245
246 settings_path = os.path.join(os.getcwd(), 'settings.gradle')
247 md5 = get_md5(settings_path)
248 self._stat_cache[settings_path] = {'md5': md5}
249
250 def _save_cache(self):
251 if os.path.exists(self._cache_path):

Callers 1

executeMethod · 0.95

Calls 3

_save_module_statMethod · 0.95
get_md5Function · 0.90
debugMethod · 0.45

Tested by

no test coverage detected