walterlife commented on code in PR #1245:
URL: 
https://github.com/apache/incubator-eventmesh/pull/1245#discussion_r967598204


##########
eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/PropertiesUtils.java:
##########
@@ -61,4 +62,14 @@ public static Properties getPropertiesByPrefix(final 
Properties from, final Prop
         );
         return to;
     }
+
+    public static Properties readPropertiesFile(String fileName) {
+        try (final InputStream inputStream = 
PropertiesUtils.class.getClassLoader().getResourceAsStream(fileName)) {
+            Properties properties = new Properties();
+            properties.load(inputStream);
+            return properties;
+        } catch (Exception e) {
+            throw new IllegalArgumentException(String.format("File: %s is not 
exist", fileName));

Review Comment:
   done, throws IOException



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to