ataspectj.instrumentation
Class SourceCodeBackuper
java.lang.Object
ataspectj.AtAspectjComponent
ataspectj.instrumentation.SourceCodeBackuper
public class SourceCodeBackuper
- extends AtAspectjComponent
Used to backup aj source code
- Author:
- Marco Poggi
Field Summary |
static java.lang.String |
SUFFIX
|
Method Summary |
static void |
createBackupFiles(java.lang.String[] fileNames)
Backup the original sorce file, they are stored into files called: .ataspectjBak |
static void |
deleteFiles(java.lang.String[] toDelete)
It deletes the backup files. |
static void |
restoreOriginalFiles(java.lang.String[] toRestore)
Restore the backuped files into the originals. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUFFIX
public static final java.lang.String SUFFIX
- See Also:
- Constant Field Values
SourceCodeBackuper
public SourceCodeBackuper()
createBackupFiles
public static void createBackupFiles(java.lang.String[] fileNames)
throws java.io.IOException
- Backup the original sorce file, they are stored into files called: .ataspectjBak
- Parameters:
fileNames
- the name of the files to backup.
- Throws:
java.io.IOException
- throwed if any io error occours.
deleteFiles
public static void deleteFiles(java.lang.String[] toDelete)
throws java.io.IOException
- It deletes the backup files.
- Parameters:
toDelete
- the array of the original file name.
- Throws:
java.io.IOException
- throwed if any io error occours.
restoreOriginalFiles
public static void restoreOriginalFiles(java.lang.String[] toRestore)
throws java.io.IOException
- Restore the backuped files into the originals.
- Parameters:
toRestore
- the array of the original file name.
- Throws:
java.io.IOException
- throwed if any io error occours.