You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ki...@apache.org on 2020/12/31 09:21:10 UTC
[shardingsphere] branch master updated: fix it windows path (#8844)
This is an automated email from the ASF dual-hosted git repository.
kimmking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new a165080 fix it windows path (#8844)
a165080 is described below
commit a165080bd1d0b78e87e16348f5692fef3055dfc5
Author: Zhang Yonglun <zh...@apache.org>
AuthorDate: Thu Dec 31 17:20:37 2020 +0800
fix it windows path (#8844)
* fix it windows path
* fix it windows path
---
.../apache/shardingsphere/test/integration/env/EnvironmentPath.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/EnvironmentPath.java b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/EnvironmentPath.java
index adb35dd..ec24c47 100644
--- a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/EnvironmentPath.java
+++ b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/EnvironmentPath.java
@@ -20,7 +20,6 @@ package org.apache.shardingsphere.test.integration.env;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
-import java.io.File;
import java.net.URL;
import static org.junit.Assert.assertNotNull;
@@ -82,7 +81,7 @@ public final class EnvironmentPath {
}
private static String getFile(final String ruleType, final String fileName) {
- URL url = EnvironmentPath.class.getClassLoader().getResource(String.join(File.separator, ROOT_PATH, ruleType, fileName));
+ URL url = EnvironmentPath.class.getClassLoader().getResource(String.join("/", ROOT_PATH, ruleType, fileName));
assertNotNull(url);
return url.getFile();
}