修改C++生成脚本时报错

This commit is contained in:
liqiankun 2017-06-26 15:28:37 +08:00
parent 5ef20c0399
commit 319879574c
2 changed files with 4 additions and 0 deletions

View File

@ -208,6 +208,7 @@ public class GameController extends BaseController {
try {
GeneratePipeline generatePipeline = (GeneratePipeline) Class
.forName(pipeLineConfig.getClassName().get(index)).newInstance();
logger.debug(params.toString());
pipeline = generatePipeline.generateFullPipeline(params);
} catch (ClassNotFoundException e) {
logger.debug("找不到生成pipeline所需要的类");

View File

@ -75,8 +75,11 @@ public class GeneratePipelineJava extends GeneratePipeline{
String pipelineTemplateFileName=params.get("pipelineTemplateFileName");
String challengePipeline=params.get("challengePipeline");
String mainContainer=params.get("mainContainer");
logger.debug("HERE!");
String fullPipeline=StringUtil.getCofigureFileContent(pipelineTemplateFileName);
logger.debug("HERE2");
fullPipeline=fullPipeline.replaceFirst("MAINCONTAINER", mainContainer).replace("CHALLENGEPIPELINES", challengePipeline);
logger.debug("HERE3");
fullPipeline=podTemplate+fullPipeline;
return fullPipeline;