text
stringlengths
0
2.2M
}
ConfigurationData::getInstance()->securityProperties.isDHParams = true;
try
{
ConfigurationData::getInstance()->securityProperties.isDHParams = CastUtil::toBool(sslsec["ISDH_PARAMS"]);
}
catch(const std::exception& e)
{
logger << "Invalid boolean value for isDHParams defined" << std::endl;
}
try
{
ConfigurationData::getInstance()->securityProperties.alpnEnabled = CastUtil::toBool(sslsec["ALPN_ENABLED"]);
if(alpnprotolist!="") {
logger << "ALPN protocols list = " << alpnprotolist << std::endl;
ConfigurationData::getInstance()->securityProperties.alpnProtoList = StringUtil::splitAndReturn<std::vector<std::string> >(alpnprotolist, ",");
} else {
ConfigurationData::getInstance()->securityProperties.alpnEnabled = false;
logger << "No ALPN protocols defined............." << std::endl;
}
}
catch(const std::exception& e)
{
logger << "Invalid boolean value for alpnEnabled defined" << std::endl;
}
}
}
#endif
std::string rundyncontent;
std::string ajrt;
std::map<std::string, std::map<std::string, ClassStructure, std::less<> >, std::less<> > clsstrucMaps;
for(unsigned int var=0;var<webdirs.size();var++)
{
//logger << webdirs.at(0) << std::flush;
std::string defpath = webdirs.at(var);
std::string dcppath = defpath + "dcp/";
RegexUtil::replace(dcppath,"[/]+","/");
std::string webpubpath = defpath + "public/";
RegexUtil::replace(webpubpath,"[/]+","/");
std::string tmplpath = defpath + "tpe/";
RegexUtil::replace(tmplpath,"[/]+","/");
std::string cmppath = defpath + "components/";
RegexUtil::replace(cmppath,"[/]+","/");
std::string usrincludes = defpath + "include/";
RegexUtil::replace(usrincludes,"[/]+","/");
//propMap srp = pread.getProperties(defpath+"config/app.prop");
std::string name = webdirs1.at(var);
StringUtil::replaceAll(name,"/","");
rundyncontent += "cp -Rf $FFEAD_CPP_PATH/public/* $FFEAD_CPP_PATH/web/"+name+"/public/\n";
ConfigurationData::getInstance()->servingContexts[name] = true;
std::string scappName = name;
StringUtil::replaceAll(scappName, "-", "_");
RegexUtil::replace(scappName, "[^a-zA-Z0-9_]+", "");
ConfigurationData::getInstance()->servingContextAppNames[name] = scappName;
CommonUtils::addContext(scappName);
ConfigurationData::getInstance()->servingContextAppRoots[name] = defpath;
ConfigurationData::getInstance()->servingContextRouters[name] = NULL;
std::vector<std::string> adcps;
CommonUtils::listFiles(adcps, dcppath, ".dcp");
//listi(dcppath,".dcp",true,adcps,false);
for (int var1 = 0; var1 < (int)adcps.size(); ++var1) {
dcps[adcps.at(var1)] = name;
}
std::vector<std::string> atpes;
CommonUtils::listFiles(atpes, tmplpath, ".tpe");
//listi(tmplpath,".tpe",true,atpes,false);
for (int var1 = 0; var1 < (int)atpes.size(); ++var1) {
//tpes[atpes.at(var1)] = name;
}
std::vector<std::string> acompnts;
CommonUtils::listFiles(acompnts, cmppath, ".cmp");
//listi(cmppath,".cmp",true,acompnts,false);
for (int var1 = 0; var1 < (int)acompnts.size(); ++var1) {
compnts[acompnts.at(var1)] = name;
}
all.push_back(usrincludes);
appf.push_back(defpath+"app.xml");
#ifdef BUILD_AUTOCONF
ilibs += ("-I" + usrincludes+" ");
#else
ilibs += ("include_directories("+usrincludes+")\n");
#endif
std::vector<std::string> includes;
CommonUtils::listFiles(includes, usrincludes, ".h");
//listi(usrincludes, ".h",true,includes,false);
std::map<std::string, ClassStructure, std::less<> > allclsmap;
for (unsigned int ind = 0; ind < includes.size(); ++ind)
{
std::map<std::string, ClassStructure, std::less<> > clsmap = ref.getClassStructures(includes.at(ind), name);
std::map<std::string, ClassStructure, std::less<> >::iterator it;
allclsmap.insert(clsmap.begin(), clsmap.end());