KacerCZ commented on a change in pull request #2206:
URL: https://github.com/apache/netbeans/pull/2206#discussion_r443757106
##########
File path:
php/php.nette.tester/test/unit/src/org/netbeans/modules/php/nette/tester/coverage/CloverLogParserTest.java
##########
@@ -98,7 +95,10 @@ private void fixContent(File file) throws Exception {
Path path = file.toPath();
Charset charset = StandardCharsets.UTF_8;
String content = new String(Files.readAllBytes(path), charset);
- content = content.replaceAll("%WORKDIR%",
getDataDir().getAbsolutePath());
+ String workdirReplacement =
Matcher.quoteReplacement(getDataDir().getAbsolutePath());
+ content = content.replaceAll("%WORKDIR%", workdirReplacement);
+ String separatorReplacement = Matcher.quoteReplacement(File.separator);
+ content = content.replaceAll("%SEP%", separatorReplacement);
Review comment:
Right, I changed it as you suggest.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists