SuperDubbo commented on a change in pull request #2562: Update ConfigUtils.java
URL: https://github.com/apache/incubator-dubbo/pull/2562#discussion_r220453199
##########
File path:
dubbo-common/src/main/java/org/apache/dubbo/common/utils/ConfigUtils.java
##########
@@ -217,7 +217,8 @@ public static Properties loadProperties(String fileName,
boolean allowMultiFile)
*/
public static Properties loadProperties(String fileName, boolean
allowMultiFile, boolean optional) {
Properties properties = new Properties();
- if (fileName.startsWith("/")) {
+ //add scene judgement in windows environment Fix 2557
+ if (fileName.startsWith("/")||fileName.matches("^[A-z]:\\\\\\S+$")) {
Review comment:
1.sorry,I do not format my code,I will do it.
2.ok.I will get the space.
3. the
testcase(com.alibaba.dubbo.config.AbstractInterfaceConfigTest#checkApplication1)
existed before
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services