(String key, String path)
| 529 | } |
| 530 | |
| 531 | public static void recordPath(String key, String path) { |
| 532 | if (key==null || !recordPath) { |
| 533 | recordPath = true; |
| 534 | return; |
| 535 | } |
| 536 | key = trimKey(key); |
| 537 | path = fixPath(path); |
| 538 | path = addQuotes(path); |
| 539 | if (commandOptions!=null && commandOptions.contains(key+"="+path)) |
| 540 | return; // don't record duplicate |
| 541 | checkForDuplicate(key+"=", path); |
| 542 | if (commandOptions==null || commandOptions.equals(" ")) |
| 543 | commandOptions = key+"="+path; |
| 544 | else |
| 545 | commandOptions += " "+key+"="+path; |
| 546 | } |
| 547 | |
| 548 | public static void recordOption(String key) { |
| 549 | if (key==null) return; |
no test coverage detected