String combinedWarPath = "../../framework/build/war-proprietary/mcf-combined-service.war";
if (System.getProperty("combinedWarPath") != null)
combinedWarPath = System.getProperty("combinedWarPath");
// Initialize the servlet
WebAppContext lcfCombined = new WebAppContext(combinedWarPath,"/mcf");
// This will cause jetty to ignore all of the framework and jdbc jars in the war, which is what we want.
lcfCombined.setParentLoaderPriority(true);
contexts.addHandler(lcfCombined);
server.start();
}
else
throw new Exception("Can't run singleWar without webapps");
}
else
{
if (webapps)
{
String crawlerWarPath = "../../framework/build/war-proprietary/mcf-crawler-ui.war";
String authorityserviceWarPath = "../../framework/build/war-proprietary/mcf-authority-service.war";
String apiWarPath = "../../framework/build/war-proprietary/mcf-api-service.war";
if (System.getProperty("crawlerWarPath") != null)
crawlerWarPath = System.getProperty("crawlerWarPath");
if (System.getProperty("authorityserviceWarPath") != null)
authorityserviceWarPath = System.getProperty("authorityserviceWarPath");
if (System.getProperty("apiWarPath") != null)
apiWarPath = System.getProperty("apiWarPath");
// Initialize the servlets
WebAppContext lcfCrawlerUI = new WebAppContext(crawlerWarPath,"/mcf-crawler-ui");
// This will cause jetty to ignore all of the framework and jdbc jars in the war, which is what we want.
lcfCrawlerUI.setParentLoaderPriority(true);
contexts.addHandler(lcfCrawlerUI);
WebAppContext lcfAuthorityService = new WebAppContext(authorityserviceWarPath,"/mcf-authority-service");
// This will cause jetty to ignore all of the framework and jdbc jars in the war, which is what we want.
lcfAuthorityService.setParentLoaderPriority(true);
contexts.addHandler(lcfAuthorityService);
WebAppContext lcfApi = new WebAppContext(apiWarPath,"/mcf-api-service");
lcfApi.setParentLoaderPriority(true);
contexts.addHandler(lcfApi);
server.start();
}
// If all worked, then we can start the daemon.