MCPcopy Create free account
hub / github.com/Kitware/CMake / read_msbuild_json

Function read_msbuild_json

Source/cmConvertMSBuildXMLToJSON.py:81–102  ·  view source on GitHub ↗

Reads the MS Build JSON file at the path and returns its contents. Keyword arguments: values -- The list to append the contents to (default [])

(path, values=None)

Source from the content-addressed store, hash-verified

79
80
81def read_msbuild_json(path, values=None):
82 """Reads the MS Build JSON file at the path and returns its contents.
83
84 Keyword arguments:
85 values -- The list to append the contents to (default [])
86 """
87 if values is None:
88 values = []
89
90 if not os.path.exists(path):
91 logging.info('Could not find MS Build JSON file at %s', path)
92 return values
93
94 try:
95 values.extend(__read_json_file(path))
96 except Exception as e:
97 logging.exception('Could not read MS Build JSON file at %s', path)
98 return values
99
100 logging.info('Processing MS Build JSON file at %s', path)
101
102 return values
103
104def main():
105 """Script entrypoint."""

Callers 1

mainFunction · 0.85

Calls 1

__read_json_fileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…