source/tools/jboss-v7-tool/src/main/java/com/uc4/ara/feature/jbossv7/DetailedCompareJBossV7Snapshot.java
private File createApplicationDirectory(File applicationFile) throws Exception {
        File appWorkingDir = FileUtil.createTempDirectory();

        if (applicationFile.isDirectory())
            SnapshotUtil.copyDirectory(applicationFile, appWorkingDir, null, SnapshotUtil.FileCopyOption.PreserveDate);

        else
        {
            File appTempDir = new File(FileUtil.createTempDirectory(), applicationFile.getName());

            SnapshotUtil.copyFile(applicationFile, appTempDir, SnapshotUtil.FileCopyOption.PreserveDate);

            ZipUtil.unzipArchive(appTempDir, appWorkingDir);

            FileUtil.deleteDirectory(appTempDir.getParentFile());
        }

        return appWorkingDir;
    }
/** Copy application file(directory) to a temporary directory
     * @param applicationFile
     * @return
     * @throws Exception
     */
Copy application file(directory) to a temporary directory
@param applicationFile
@return
@throws Exception
Copy application file ( directory ) to a temporary directory @param applicationFile @return @throws Exception
private File createApplicationDirectory(File applicationFile) throws Exception {
        File appWorkingDir = FileUtil.createTempDirectory();
        if (applicationFile.isDirectory())
            SnapshotUtil.copyDirectory(applicationFile, appWorkingDir, null, SnapshotUtil.FileCopyOption.PreserveDate);
        else
        {
            File appTempDir = new File(FileUtil.createTempDirectory(), applicationFile.getName());
            SnapshotUtil.copyFile(applicationFile, appTempDir, SnapshotUtil.FileCopyOption.PreserveDate);
            ZipUtil.unzipArchive(appTempDir, appWorkingDir);
            FileUtil.deleteDirectory(appTempDir.getParentFile());
        }
        return appWorkingDir;
    }
private File createApplicationDirectory ( File applicationFile ) throws Exception { File appWorkingDir = FileUtil . createTempDirectory ( ) ; if ( applicationFile . isDirectory ( ) ) SnapshotUtil . copyDirectory ( applicationFile , appWorkingDir , null , SnapshotUtil . FileCopyOption . PreserveDate ) ; else { File appTempDir = new File ( FileUtil . createTempDirectory ( ) , applicationFile . getName ( ) ) ; SnapshotUtil . copyFile ( applicationFile , appTempDir , SnapshotUtil . FileCopyOption . PreserveDate ) ; ZipUtil . unzipArchive ( appTempDir , appWorkingDir ) ; FileUtil . deleteDirectory ( appTempDir . getParentFile ( ) ) ; } return appWorkingDir ; }
Copy application file(directory) to a temporary directory
 @param applicationFile
 @return
 @throws Exception
Copy application file ( directory ) to a temporary directory @param applicationFile @return @throws Exception