git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Tue, 3 May 2022 10:39:59 +0000 (10:39 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Tue, 3 May 2022 10:39:59 +0000 (10:39 +0000)
server/user.jobengine.osgi.server/src/user/jobengine/server/JobEngineConfiguration.java

index af69ea3cc61f5f391a862914043cf1e034dc0d59..ce79a055ccfec2446802d4cae18d588c770bb52c 100644 (file)
@@ -386,9 +386,9 @@ public class JobEngineConfiguration implements IJobEngineConfiguration {
                Path schedulesPath = null;\r
                try {\r
                        schedulesPath = Paths.get(systemConfig.getConfig(CONF_SCHEDULES));\r
-                       if (!Files.exists(schedulesPath)) {\r
-                               Files.createFile(schedulesPath);\r
-                       }\r
+//                     if (!Files.exists(schedulesPath)) {\r
+//                             Files.createFile(schedulesPath);\r
+//                     }\r
                        if (Files.isDirectory(schedulesPath))\r
                                throw new FileNotFoundException(schedulesPath + " is a directory!");\r
                        logger.info("Saving schedules.json to {}", schedulesPath);\r
@@ -401,9 +401,9 @@ public class JobEngineConfiguration implements IJobEngineConfiguration {
                        }\r
                        dbo.put("joblist", jobList);\r
                        if (Files.isWritable(schedulesPath)) {\r
-                               logger.info("{} is writable");\r
+                               logger.info("{} is writable", schedulesPath);\r
                        } else {\r
-                               logger.info("{} was not writable");\r
+                               logger.info("{} was not writable", schedulesPath);\r
                                DosFileAttributeView dos = Files.getFileAttributeView(schedulesPath, DosFileAttributeView.class);\r
                                if (dos != null) {\r
                                        try {\r