Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.thermidor.build.tasks
Class InstallTask.BackupNumbered  view InstallTask.BackupNumbered download InstallTask.BackupNumbered.java

java.lang.Object
  extended bycom.thermidor.build.tasks.InstallTask.BackupAction
      extended bycom.thermidor.build.tasks.InstallTask.BackupNumbered
Enclosing class:
InstallTask

public static class InstallTask.BackupNumbered
extends InstallTask.BackupAction

Make numbered backups of the files that are to be replaced. This mode follows the same for as that employed by the GNU file utils. For example the first backup will be of the form 'build.xml.~1~'

Version:
1.0

Constructor Summary
InstallTask.BackupNumbered()
           
 
Method Summary
 void backup(java.io.File file, java.lang.String suffix)
          The numbered backup mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallTask.BackupNumbered

public InstallTask.BackupNumbered()
Method Detail

backup

public void backup(java.io.File file,
                   java.lang.String suffix)
            throws java.io.IOException
The numbered backup mode. Backup the specified file using the numbering scheme. In this case the suffix will be ignored. The numbering scheme ignores missing backup numbers and will always create a new backup that is on higher than any in the directory.

Specified by:
backup in class InstallTask.BackupAction