Skip to content

Commit b8bf311

Browse files
committed
Fix path separators in checksums. Follow-up to #15377
1 parent e2d356f commit b8bf311

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/regenerate/RegenerateTasksSupportPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import groovy.json.JsonOutput;
2020
import groovy.json.JsonSlurper;
2121
import groovy.lang.Closure;
22+
import java.io.File;
2223
import java.io.IOException;
2324
import java.io.UncheckedIOException;
2425
import java.net.URL;
@@ -393,7 +394,7 @@ private static TreeMap<String, String> computeChecksummedEntries(Task sourceTask
393394
"All regenerate task checksummed inputs/outputs should be files: " + file);
394395
}
395396
allEntries.put(
396-
rootPath.relativize(file.toPath()).toString(),
397+
rootPath.relativize(file.toPath()).toString().replace(File.separatorChar, '/'),
397398
file.exists() ? digestUtils.digestAsHex(file).trim() : "--");
398399
} catch (IOException e) {
399400
throw new UncheckedIOException(e);

0 commit comments

Comments
 (0)