String relativePath = calculateRelativePath( sourceDir, serializerFile );
File targetFile = new File( destination, relativePath );
if ( targetFile.exists() ) {
Executor executor = new Executor( new ProcessBuilder( "meld", targetFile.getAbsolutePath(), serializerFile.getAbsolutePath() ) );
executor.execute();
} else {
//Create the directory if necessary
File targetDir = targetFile.getParentFile();
if ( !targetDir.isDirectory() ) {
targetDir.mkdirs();