(String value)
| 736 | /*safe*/(value.substring(TEMPLATES.length()))); |
| 737 | } |
| 738 | if (value.startsWith(WORKSPACE)) { |
| 739 | return new File(defaultDirectory, |
| 740 | /*safe*/(value.substring(WORKSPACE.length()))); |
| 741 | } |
| 742 | return new File(value); |
| 743 | } |
| 744 | |
| 745 | public File filenameFor(String defaultPrefix, String value) { |
| 746 | if (value.startsWith(TEMPLATES)) { |
| 747 | return sanitizeName(new File(templateDirectory, |
| 748 | /*safe*/(value.substring(TEMPLATES.length())))); |
| 749 | } |
| 750 | if (value.startsWith(WORKSPACE)) { |
| 751 | return sanitizeName(new File(defaultDirectory, |
no test coverage detected