This is an automated email from the ASF dual-hosted git repository.

tyrantlucifer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 39aef9fe1 [Hotfix][] fix split path failed in win10 (#4109)
39aef9fe1 is described below

commit 39aef9fe172268a1190a3afac7c4266c7240801d
Author: Laglangyue <[email protected]>
AuthorDate: Sun Feb 12 21:58:49 2023 +0800

    [Hotfix][] fix split path failed in win10 (#4109)
    
    * [e2e] fix split path failed in win10
    
    * [e2e] fix style
---
 .../test/java/org/apache/seatunnel/e2e/common/util/ContainerUtil.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/common/util/ContainerUtil.java
 
b/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/common/util/ContainerUtil.java
index f33e882d8..ff3f5bcf1 100644
--- 
a/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/common/util/ContainerUtil.java
+++ 
b/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/common/util/ContainerUtil.java
@@ -25,6 +25,8 @@ import org.apache.seatunnel.api.configuration.ReadonlyConfig;
 import org.apache.seatunnel.api.table.factory.FactoryException;
 import org.apache.seatunnel.e2e.common.container.TestContainer;
 
+import org.apache.commons.lang3.StringUtils;
+
 import org.junit.jupiter.api.Assertions;
 import org.testcontainers.containers.GenericContainer;
 import org.testcontainers.utility.MountableFile;
@@ -123,7 +125,7 @@ public final class ContainerUtil {
             String seatunnelHomeInContainer) {
         // solve the problem of multi modules such as
         // seatunnel-flink-starter/seatunnel-flink-13-starter
-        final String[] splits = startModuleName.split(File.separator);
+        final String[] splits = StringUtils.split(startModuleName, 
File.separator);
         final String startJarName = splits[splits.length - 1] + ".jar";
         // copy starter
         final String startJarPath =

Reply via email to