if (options.get("tomee.appinfo.output", false)) {
Info.marshal(appInfo);
}
HTTPContext httpContext = new HTTPContext(configuration.getHost(), configuration.getHttpPort());
String arquillianServlet;
// Avoids "inconvertible types" error in windows build
if (archiveName.endsWith(".war") || (archiveName.endsWith(".ear") && appInfo.webApps.size() == 1)) {
arquillianServlet = "/" + getArchiveNameWithoutExtension(archive);
} else {
arquillianServlet = "/arquillian-protocol";
}
httpContext.add(new Servlet("ArquillianServletRunner", arquillianServlet));
addServlets(httpContext, appInfo);
return new ProtocolMetaData().addContext(httpContext);
} catch (Exception e) {
e.printStackTrace();