We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c04a11f + 3cd85ed commit ff99b1eCopy full SHA for ff99b1e
src/main/java/com/github/dockerjava/core/dockerfile/Dockerfile.java
@@ -252,7 +252,8 @@ private List<String> matchingIgnorePatterns(String fileName) {
252
* will be respected.
253
*/
254
private String effectiveMatchingIgnorePattern(File file) {
255
- String relativeFilename = FilePathUtil.relativize(baseDirectory, file);
+ // normalize path to replace '/' to '\' on Windows
256
+ String relativeFilename = FilenameUtils.normalize(FilePathUtil.relativize(baseDirectory, file));
257
258
List<String> matchingPattern = matchingIgnorePatterns(relativeFilename);
259
0 commit comments