You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2022/03/03 14:45:14 UTC
[tomee-site-generator] branch master updated: TOMEE-3847 fixed website build on windows
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee-site-generator.git
The following commit(s) were added to refs/heads/master by this push:
new dedbf0f TOMEE-3847 fixed website build on windows
dedbf0f is described below
commit dedbf0f9e3f12f6f7f5489b5a0754d0d42e4a17a
Author: Swell <57...@users.noreply.github.com>
AuthorDate: Thu Mar 3 14:25:54 2022 +0100
TOMEE-3847 fixed website build on windows
---
src/main/java/org/apache/tomee/website/LearningLinks.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/tomee/website/LearningLinks.java b/src/main/java/org/apache/tomee/website/LearningLinks.java
index a125e80..3a80238 100644
--- a/src/main/java/org/apache/tomee/website/LearningLinks.java
+++ b/src/main/java/org/apache/tomee/website/LearningLinks.java
@@ -185,7 +185,7 @@ public class LearningLinks {
}
static String pathFromContentRoot(final File file) {
- final String absolutePath = file.getAbsolutePath();
+ final String absolutePath = file.getAbsolutePath().replace(File.separatorChar, '/');
final String content = "/content/";
final int indexOfContent = absolutePath.indexOf(content);