Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2F9AC0DB for ; Thu, 7 Jun 2012 21:08:24 +0000 (UTC) Received: (qmail 63813 invoked by uid 500); 7 Jun 2012 21:08:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 63722 invoked by uid 500); 7 Jun 2012 21:08:24 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 63554 invoked by uid 99); 7 Jun 2012 21:08:24 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2012 21:08:24 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 04021142859 for ; Thu, 7 Jun 2012 21:08:24 +0000 (UTC) Date: Thu, 7 Jun 2012 21:08:24 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: <1709774758.49746.1339103304018.JavaMail.jiratomcat@issues-vm> In-Reply-To: <126909057.17054.1332763107587.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (IO-316) New API: BackupFileWriter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IO-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated IO-316: -------------------- Issue Type: New Feature (was: Bug) > New API: BackupFileWriter > ------------------------- > > Key: IO-316 > URL: https://issues.apache.org/jira/browse/IO-316 > Project: Commons IO > Issue Type: New Feature > Components: Streams/Writers > Affects Versions: 2.1 > Reporter: Aaron Digulla > Priority: Minor > > Add the new file based I/O class {{BackupFileWriter}} with the following properties: > - Saves the file to a temporary name > - Creates backup of existing file on {{close()}} > - Renames temp file to desired name on {{close()}} > The backup strategy (number of backups, backup file name) should be pluggable. > There should also be a hook to compare the temporary and the existing file and do the rename only when they are different. The default hook should always replace the file. > It should also be possible to override the temporary file name (including the path, so the temp file can be in the same directory or a different one or even on a different disk). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira