/** * Initializes this component. * * @throws FileSystemException if an error occurs. */ @Override public void init() throws FileSystemException { if (tempDir == null) { final String baseTmpDir = System.getProperty("java.io.tmpdir"); tempDir = new File(baseTmpDir, "vfs_cache").getAbsoluteFile(); } filecount = random.nextInt() & MASK; if (!tempDirMessageLogged) { final String message = Messages.getString("vfs.impl/temp-dir.debug", tempDir); VfsLog.debug(getLogger(), log, message); tempDirMessageLogged = true; } }
/** * Initializes this component. * * @throws FileSystemException if an error occurs. */ @Override public void init() throws FileSystemException { if (tempDir == null) { final String baseTmpDir = System.getProperty("java.io.tmpdir"); tempDir = new File(baseTmpDir, "vfs_cache").getAbsoluteFile(); } filecount = random.nextInt() & MASK; if (!tempDirMessageLogged) { final String message = Messages.getString("vfs.impl/temp-dir.debug", tempDir); VfsLog.debug(getLogger(), log, message); tempDirMessageLogged = true; } }
/** * Initializes this component. * * @throws FileSystemException if an error occurs. */ @Override public void init() throws FileSystemException { if (tempDir == null) { final String baseTmpDir = System.getProperty("java.io.tmpdir"); tempDir = new File(baseTmpDir, "vfs_cache").getAbsoluteFile(); } filecount = random.nextInt() & MASK; if (!tempDirMessageLogged) { final String message = Messages.getString("vfs.impl/temp-dir.debug", tempDir); VfsLog.debug(getLogger(), log, message); tempDirMessageLogged = true; } }
/** * Initializes this component. * * @throws FileSystemException if an error occurs. */ @Override public void init() throws FileSystemException { if (tempDir == null) { final String baseTmpDir = System.getProperty("java.io.tmpdir"); tempDir = new File(baseTmpDir, "vfs_cache").getAbsoluteFile(); } filecount = random.nextInt() & MASK; if (!tempDirMessageLogged) { final String message = Messages.getString("vfs.impl/temp-dir.info", tempDir); VfsLog.info(getLogger(), log, message); tempDirMessageLogged = true; } }
/** * Physically deletes the file from the filesystem. * * @param file The File to delete. */ protected void deleteFile(final File file) { try { final FileObject fileObject = getContext().toFileObject(file); fileObject.deleteAll(); } catch (final FileSystemException e) { final String message = Messages.getString("vfs.impl/delete-temp.warn", file.getName()); VfsLog.warn(getLogger(), log, message, e); } }
/** * Physically deletes the file from the filesystem. * * @param file The File to delete. */ protected void deleteFile(final File file) { try { final FileObject fileObject = getContext().toFileObject(file); fileObject.deleteAll(); } catch (final FileSystemException e) { final String message = Messages.getString("vfs.impl/delete-temp.warn", file.getName()); VfsLog.warn(getLogger(), log, message, e); } }
/** * Physically deletes the file from the filesystem. * * @param file The File to delete. */ protected void deleteFile(final File file) { try { final FileObject fileObject = getContext().toFileObject(file); fileObject.deleteAll(); } catch (final FileSystemException e) { final String message = Messages.getString("vfs.impl/delete-temp.warn", file.getName()); VfsLog.warn(getLogger(), log, message, e); } }
/** * Physically deletes the file from the filesystem. * * @param file The File to delete. */ protected void deleteFile(final File file) { try { final FileObject fileObject = getContext().toFileObject(file); fileObject.deleteAll(); } catch (final FileSystemException e) { final String message = Messages.getString("vfs.impl/delete-temp.warn", file.getName()); VfsLog.warn(getLogger(), log, message, e); } }