From d335119cbad27d9a736dc808c0cc89644e5a260d Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Tue, 3 May 2022 10:39:59 +0000 Subject: [PATCH] git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C33288 --- .../user/jobengine/server/JobEngineConfiguration.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/user.jobengine.osgi.server/src/user/jobengine/server/JobEngineConfiguration.java b/server/user.jobengine.osgi.server/src/user/jobengine/server/JobEngineConfiguration.java index af69ea3c..ce79a055 100644 --- a/server/user.jobengine.osgi.server/src/user/jobengine/server/JobEngineConfiguration.java +++ b/server/user.jobengine.osgi.server/src/user/jobengine/server/JobEngineConfiguration.java @@ -386,9 +386,9 @@ public class JobEngineConfiguration implements IJobEngineConfiguration { Path schedulesPath = null; try { schedulesPath = Paths.get(systemConfig.getConfig(CONF_SCHEDULES)); - if (!Files.exists(schedulesPath)) { - Files.createFile(schedulesPath); - } +// if (!Files.exists(schedulesPath)) { +// Files.createFile(schedulesPath); +// } if (Files.isDirectory(schedulesPath)) throw new FileNotFoundException(schedulesPath + " is a directory!"); logger.info("Saving schedules.json to {}", schedulesPath); @@ -401,9 +401,9 @@ public class JobEngineConfiguration implements IJobEngineConfiguration { } dbo.put("joblist", jobList); if (Files.isWritable(schedulesPath)) { - logger.info("{} is writable"); + logger.info("{} is writable", schedulesPath); } else { - logger.info("{} was not writable"); + logger.info("{} was not writable", schedulesPath); DosFileAttributeView dos = Files.getFileAttributeView(schedulesPath, DosFileAttributeView.class); if (dos != null) { try { -- 2.54.0