Skip to content

Commit

Permalink
fix apache#2557 Update ConfigUtils.java (apache#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperDubbo authored and jerrick-zhu committed Sep 26, 2018
1 parent 00b718c commit cd7ba29
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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+$")) {
try {
FileInputStream input = new FileInputStream(fileName);
try {
Expand Down Expand Up @@ -328,4 +329,4 @@ public static int getServerShutdownTimeout() {
return timeout;
}

}
}

0 comments on commit cd7ba29

Please sign in to comment.