提交 b5cf8bcb 编写于 作者: H hujie

CI No environment 2

上级 d360f8bb
......@@ -66,9 +66,9 @@ public class PlainAclPlugEngineTest {
if(url == null) {
url = PlainAclPlugEngineTest.class.getResource("/");
home = url.toString();
home = home.substring(0, home.length()-1).replace("file:/", "").replace("target/test-classes/", "");
home = home+"resources";
String filePath = home+"resources/conf/transport.yml";
home = home.substring(0, home.length()-1).replace("file:/", "").replace("target/test-classes", "");
home = home+"src/test/resources";
String filePath = home+"/conf/transport.yml";
fis = new FileInputStream(new File(filePath));
}else {
fis = url.openStream();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册