final MavenUtils mavenUtils = new MavenUtils(mavenDir, handler);
mavenUtils.createPackage(installPath + "/" + artifactId, confDirectory, logsDirectory, bundlesDirectory);
switch (selectedContainer) {
case TOMCAT:
final Tomcat tomcat = new Tomcat(
tomcatSsl, tomcatHost, tomcatPort, installPath, artifactId, tomcatUser, tomcatPassword, handler);
boolean deployCoreResult = tomcat.deployCore();
if (deployCoreResult) {
handler.logOutput("Core successfully deployed ", true);
InstallLog.getInstance().info("Core successfully deployed ");
} else {
final String messageError = "Deploy core on Tomcat failed";
handler.emitError(messageError, messageError);
InstallLog.getInstance().error(messageError);
}
boolean deployConsoleResult = tomcat.deployConsole();
if (deployConsoleResult) {
handler.logOutput("Console successfully deployed ", true);
InstallLog.getInstance().info("Console successfully deployed ");
} else {
final String messageError = "Deploy console on Tomcat failed";