git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Fri, 21 Jan 2022 10:27:54 +0000 (10:27 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Fri, 21 Jan 2022 10:27:54 +0000 (10:27 +0000)
server/user.jobengine.osgi.commons/src/user/commons/configuration/SystemConfiguration.java

index 7f9014e9c121ea0587304beea587e9707e00205b..e750cb764f054f9dec034f209c55c706534d2efd 100644 (file)
@@ -46,10 +46,10 @@ public class SystemConfiguration implements IConfiguration {
        @Override\r
        public String getConfig(String relativeConfigName) throws FileNotFoundException {\r
                Path result = Paths.get(System.getProperty("user.dir", ""), relativeConfigName);\r
-               if (result.toFile().exists())\r
+               if (Files.exists(result))\r
                        return result.toString();\r
                result = Paths.get(System.getProperty("system.config.root", ""), relativeConfigName);\r
-               if (result.toFile().exists())\r
+               if (Files.exists(result))\r
                        return result.toString();\r
                throw new FileNotFoundException("Cant find configuration file " + relativeConfigName);\r
        }\r