this.logService = logService;
}
@Override
public Webapp loadWebapp(String fullPath) throws IOException {
Environment env = environmentService.getEnvironment();
Webapp webapp = new Webapp();
webapp.setFullPath(fullPath);
/*
* Create collections to hold our settings, frameworks and webapps for later processing
*/
Ini ini = new Ini();
File appSettings = new File(fullPath + "/src/main/webapp/adaptrex/app.config");
if (!appSettings.exists()) return null;
ini.load(new FileReader(appSettings));
/*
* Get our app name
*/
Ini.Section settingsSection = ini.get(SETTINGS);
webapp.setName(settingsSection.get("name"));
webapp.setBasePackage(settingsSection.get(BASE_PACKAGE));
webapp.setGlobalFolder(settingsSection.get(GLOBAL_FOLDER));
webapp.setGlobalNamespace(settingsSection.get(GLOBAL_NAMESPACE));
/*
* Get information about our webapp's frameworks
*/
Ini.Section frameworkSection = ini.get(FRAMEWORKS);
if (frameworkSection.containsKey(ADAPTREXJS))
webapp.setAdaptrex(env.getAdaptrexFrameworks().get(frameworkSection.get(ADAPTREXJS)));
if (frameworkSection.containsKey(EXTJS))
webapp.setExt(env.getExtFrameworks().get(frameworkSection.get(EXTJS)));
if (frameworkSection.containsKey(SENCHA_TOUCH))
webapp.setSenchaTouch(env.getSenchaTouchFrameworks().get(frameworkSection.get(SENCHA_TOUCH)));
if (frameworkSection.containsKey(ORM))
webapp.setOrm(frameworkSection.get(ORM));
if (frameworkSection.containsKey(PRESENTATION))
webapp.setPresentation(frameworkSection.get(PRESENTATION));
if (frameworkSection.containsKey(DI))