提交 eebb2991 编写于 作者: H hujie

CI No environment 3

上级 b5cf8bcb
...@@ -41,7 +41,7 @@ public class PlainAclPlugEngine extends LoginInfoAclPlugEngine { ...@@ -41,7 +41,7 @@ public class PlainAclPlugEngine extends LoginInfoAclPlugEngine {
fis = new FileInputStream(new File(filePath)); fis = new FileInputStream(new File(filePath));
transport = ymal.loadAs(fis, BorkerAccessControlTransport.class); transport = ymal.loadAs(fis, BorkerAccessControlTransport.class);
} catch (Exception e) { } catch (Exception e) {
throw new AclPlugRuntimeException("The transport.yml file for Plain mode was not found", e); throw new AclPlugRuntimeException(String.format("The transport.yml file for Plain mode was not found , paths %s" , filePath), e);
} finally { } finally {
if (fis != null) { if (fis != null) {
try { try {
......
...@@ -61,9 +61,9 @@ public class PlainAclPlugEngineTest { ...@@ -61,9 +61,9 @@ public class PlainAclPlugEngineTest {
Yaml ymal = new Yaml(); Yaml ymal = new Yaml();
String home = System.getProperty(MixAll.ROCKETMQ_HOME_PROPERTY, System.getenv(MixAll.ROCKETMQ_HOME_ENV)); String home = System.getProperty(MixAll.ROCKETMQ_HOME_PROPERTY, System.getenv(MixAll.ROCKETMQ_HOME_ENV));
InputStream fis=null; InputStream fis=null;
if(home == null){ if(home != null){
URL url = PlainAclPlugEngineTest.class.getResource("/conf/transport.yml"); URL url = PlainAclPlugEngineTest.class.getResource("/conf/transport.yml");
if(url == null) { if(url != null) {
url = PlainAclPlugEngineTest.class.getResource("/"); url = PlainAclPlugEngineTest.class.getResource("/");
home = url.toString(); home = url.toString();
home = home.substring(0, home.length()-1).replace("file:/", "").replace("target/test-classes", ""); home = home.substring(0, home.length()-1).replace("file:/", "").replace("target/test-classes", "");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册