if (hasExplicitExportDirArg) {
if (appExportDir.listFiles().length > 0) throw new DirectoryNotEmptyCommandException(appExportDir.getPath(), this);
} else {
appExportDir.mkdir();
}
app.build(appExportDir);
logger.println(Messages.APP_BUILT_CONSOLE_MSG, appName, appExportDir.getCanonicalPath());
}
}
catch (ModelOperationException | IOException e) {
throw new CommandOperationException(e);