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)
| 79 | |
| 80 | |
| 81 | def 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 | |
| 104 | def main(): |
| 105 | """Script entrypoint.""" |
no test coverage detected
searching dependent graphs…