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/25 13:00:13 UTC

[tomee] branch master updated: TOMEE-3876 - BOM generation corrupted under windows (slash problems)

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.git


The following commit(s) were added to refs/heads/master by this push:
     new 6c915a1  TOMEE-3876 - BOM generation corrupted under windows (slash problems)
6c915a1 is described below

commit 6c915a1770da128bd8cf7c3955152b09d4bd94a9
Author: Swell <57...@users.noreply.github.com>
AuthorDate: Fri Mar 25 12:30:46 2022 +0100

    TOMEE-3876 - BOM generation corrupted under windows (slash problems)
---
 .../src/test/java/org/apache/tomee/bootstrap/GenerateBoms.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tomee/apache-tomee/src/test/java/org/apache/tomee/bootstrap/GenerateBoms.java b/tomee/apache-tomee/src/test/java/org/apache/tomee/bootstrap/GenerateBoms.java
index bbd3bd1..299f245 100644
--- a/tomee/apache-tomee/src/test/java/org/apache/tomee/bootstrap/GenerateBoms.java
+++ b/tomee/apache-tomee/src/test/java/org/apache/tomee/bootstrap/GenerateBoms.java
@@ -539,7 +539,7 @@ public class GenerateBoms {
             final String groupId = artifactDir.getParentFile()
                     .getAbsolutePath()
                     .substring(path.getAbsolutePath().length() + 1)
-                    .replace("/", ".");
+                    .replace(File.separatorChar, '.');
 
             return Artifact.builder()
                     .artifactId(artifactDir.getName())