net.sf.daileon
Class DirectoryDuplicator
java.lang.Object
net.sf.daileon.DirectoryDuplicator
class DirectoryDuplicator
- extends Object
The DirectoryDuplicator
class provides a single method, which
copies the content of a directory to another directory. This is a utility
class that is used before performing the actual transformations of the domain
annotations, since the original code is kept with the domain annotations, and
the actual domain annotations are only translated in the copied classes.
- Version:
- 1.0 01/01/10
- Author:
- Roberto Perillo
Method Summary |
(package private) static void |
copyDirectory(File sourceLocation,
File targetLocation)
Copies the content of a directory to another location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryDuplicator
DirectoryDuplicator()
copyDirectory
static void copyDirectory(File sourceLocation,
File targetLocation)
- Copies the content of a directory to another location.
- Parameters:
sourceLocation
- A File
representation of the directory whose content
will be copied.targetLocation
- A File
representation of the directory that will
receive the content of the source directory.
- Throws:
RuntimeException
- If any problem occurs when trying to create a directory with
the same name as the source location in the target location,
or if any IOException
occurs.