Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.gradle.process.ExecResult;

import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
Expand Down Expand Up @@ -193,7 +194,8 @@ private <T> T getMainFile(String resourcePath, BiFunction<String, String, T> par
if (getMainResources().contains(resourcePath) == false) {
return null;
}
String content = gitCommand("show", "main:./" + resourcePath).strip();

String content = gitCommand("show", "main:." + File.separator + resourcePath).strip();
return parser.apply(resourcePath, content);
}

Expand Down