Skip to content

Commit

Permalink
Fix plugin build test on Windows (#33078)
Browse files Browse the repository at this point in the history
Fix plugin build test on Windows
  • Loading branch information
alpar-t committed Aug 28, 2018
1 parent 01a3b66 commit 01fad77
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -158,7 +158,12 @@ private String getLocalTestRepoPath() {
Objects.requireNonNull(property, "test.local-test-repo-path not passed to tests");
File file = new File(property);
assertTrue("Expected " + property + " to exist, but it did not!", file.exists());
return file.getAbsolutePath();
if (File.separator.equals("\\")) {
// Use / on Windows too, the build script is not happy with \
return file.getAbsolutePath().replace(File.separator, "/");
} else {
return file.getAbsolutePath();
}
}

}

0 comments on commit 01fad77

Please sign in to comment.