initializeVppConfig();
return vppConfig.getVelocityContext();
}
protected ClassGenerationAction createGeneratorAction() {
ClassGenerationAction action;
if (client) {
action = new ClientClassGenerationAction();
action.setContext(getVppContext());
}
else if (ClassGenerator.VERSION_1_1.equals(version)) {
action = new ClassGenerationAction1_1();
}
else {
action = new ClassGenerationAction();
action.setContext(getVppContext());
}
action.setDestDir(destDir);
action.setEncoding(encoding);
action.setMakePairs(makepairs);
action.setArtifactsGenerationMode(mode);
action.setOutputPattern(outputPattern);
action.setOverwrite(overwrite);
action.setSuperPkg(superpkg);
action.setSuperTemplate(supertemplate);
action.setTemplate(template);
action.setEmbeddableSuperTemplate(embeddablesupertemplate);
action.setEmbeddableTemplate(embeddabletemplate);
action.setUsePkgPath(usepkgpath);
return action;
}