(filename: string)
| 432 | } |
| 433 | |
| 434 | function readFile(filename: string): string | undefined { |
| 435 | try { |
| 436 | if (!existsSync(filename)) { |
| 437 | logger.error(`Unable to find ${filename}. Try updating it manually`); |
| 438 | return; |
| 439 | } |
| 440 | return readFileSync(filename, 'utf-8'); |
| 441 | } catch (err) { |
| 442 | logger.error(`Unable to read ${filename}. Verify it is not already open. ${err}`); |
| 443 | } |
| 444 | } |
| 445 | |
| 446 | function getGradleWrapperVersion(filename: string): string { |
| 447 | const txt = readFile(filename); |
no test coverage detected