if (warExport && warExportFile.exists()) {
boolean deleted = FileUtils.deleteQuietly(warExportFile);
if (!deleted) {
File oldWarExportFile = warExportFile;
warExportFile = new File(targetDir, appName+"_"+getBuiltAppTimestamp()+".war");
brjs.logger(this.getClass()).warn( Messages.UNABLE_TO_DELETE_BULIT_APP_EXCEPTION, RelativePathUtility.get(brjs.getFileInfoAccessor(), app.dir(), oldWarExportFile), RelativePathUtility.get(brjs.getFileInfoAccessor(), app.dir(), warExportFile));
}
} else if (!warExport && appExportDir.exists()){
boolean deleted = FileUtils.deleteQuietly(appExportDir);
if (!deleted) {
File oldAppExportDir = appExportDir;