Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
12.2
-
None
Description
To fix the issue of Nashorn being removed, someone is having ant compile scripts. They apparently did this without using an IDE since they are comparing strings with "==" and "!=", which is why it doesn't work on Windows. I have fixed it but am too lazy to check it in. Here is the new fixed method as it appears in build-impl.xml:
private String toRegexp2(String spec, String filepattern, String separator) { List<String> prefixes = new ArrayList<>(); List<String> suffixes = new ArrayList<>(); pathVariants(spec).forEach(item -> { suffixes.add(item); }); String tail = ""; String separatorString = separator; if ("\\".equals(separatorString)) { separatorString = "\\\\"; } if (filepattern != null && !filepattern.equals(tail)) { tail = separatorString + filepattern; } return "([^" + separatorString +"]+)\\Q" + separator + "\\E(" + suffixes.stream().collect(Collectors.joining("|")) + ")" + tail; }
Attachments
Issue Links
- links to