use of org.eclipse.vorto.codegen.bosch.things.javaclient.templates.PomTemplate in project vorto by eclipse.
the class JavaClientTask method generate.
@Override
public void generate(InformationModel element, InvocationContext context, IGeneratedWriter writer) {
ChainedCodeGeneratorTask<InformationModel> generator = new ChainedCodeGeneratorTask<InformationModel>();
generator.addTask(new GeneratorTaskFromFileTemplate<>(new PomTemplate()));
generator.addTask(new GeneratorTaskFromFileTemplate<>(new LogbackTemplate()));
generator.addTask(new ThingsClientGeneratorTask());
generator.addTask(new ThingsIntegrationUtilGeneratorTask());
generator.generate(element, context, writer);
for (FunctionblockProperty fbProperty : element.getProperties()) {
if (context.getConfigurationProperties().getOrDefault(CONFIG_PARAM_SKIP_CLIENT, "false").equalsIgnoreCase("false")) {
new GeneratorTaskFromFileTemplate<>(new FunctionblockTemplate()).generate(fbProperty.getType(), context, writer);
}
}
}
Aggregations