You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/05/06 14:44:42 UTC

[GitHub] [incubator-inlong] healchow commented on a diff in pull request #4096: [INLONG-4095][Manager] Fix UT error and align special characters

healchow commented on code in PR #4096:
URL: https://github.com/apache/incubator-inlong/pull/4096#discussion_r866900524


##########
inlong-manager/manager-client-tools/src/main/java/org/apache/inlong/manager/client/cli/CommandUtil.java:
##########
@@ -25,22 +25,24 @@
 
 import java.io.BufferedInputStream;
 import java.io.File;
-import java.io.FileInputStream;
 import java.io.FileReader;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
 import java.io.Reader;
+import java.nio.file.Files;
+import java.nio.file.Paths;
 import java.util.Properties;
 
 abstract class CommandUtil {
 
     public InlongClientImpl connect() {
         Properties properties = new Properties();
-        String path = System.getProperty("user.dir") + "/conf/application.properties";
+        String path =
+                Thread.currentThread().getContextClassLoader().getResource("").getPath() + "application.properties";

Review Comment:
   Could you please set the `application.properties` as a constant?



-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org