/** * Copies a file to a directory preserving the file date. This method copies the contents of the specified source file to a file of the same name in the * specified destination directory. The destination directory is created if it does not exist. If the destination file exists, then this method will * overwrite it. * * @param srcFile an existing file to copy, must not be <code>null</code> * @param destDir the directory to place the copy in, must not be <code>null</code> * @throws Fabric3Exception if an IO error occurs during copying */ public static void copyFileToDirectory(File srcFile, File destDir) throws Fabric3Exception { copyFileToDirectory(srcFile, destDir, true); }