// When already existing adapted project is created , need to move to new adapted project private boolean deleteCIJobFile(ApplicationInfo appInfo) throws PhrescoException { S_LOGGER.debug("Entering Method ProjectAdministratorImpl.deleteCI()"); try { File ciJobInfo = new File(getCIJobPath(appInfo)); return ciJobInfo.delete(); } catch (ClientHandlerException ex) { S_LOGGER.error( "Entered into catch block of ProjectAdministratorImpl.deleteCI()" + ex.getLocalizedMessage()); throw new PhrescoException(ex); } }
@Timeout public void handletimeout(Timer timer) { // delete temp files for (File f : deleteTempFileList) { dbgLog.fine("file to be deleted: path=" + f.getAbsolutePath() + "\tname=" + f.getName()); if (f.exists()) { boolean sc = f.delete(); if (!sc) { dbgLog.fine( "failed to delete file: path=" + f.getAbsolutePath() + "\tname=" + f.getName()); } else { dbgLog.fine("successfully deleted? let's check its existence"); if (f.exists()) { dbgLog.fine("surprise: actually the File still exists"); } else { dbgLog.fine("The file no longer exists"); } } } } }