diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/RestTestsFromSnippetsTask.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/RestTestsFromSnippetsTask.groovy index a01d1d5839f..17a889e677f 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/RestTestsFromSnippetsTask.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/RestTestsFromSnippetsTask.groovy @@ -133,7 +133,8 @@ public class RestTestsFromSnippetsTask extends SnippetsTask { */ void handleSnippet(Snippet snippet) { if (RestTestsFromSnippetsTask.isConsoleCandidate(snippet)) { - unconvertedCandidates.add(snippet.path.toString()) + unconvertedCandidates.add(snippet.path.toString() + .replace('\\', '/')) } if (BAD_LANGUAGES.contains(snippet.language)) { throw new InvalidUserDataException(