Examples of MvelTemplateRendering


Examples of io.fabric8.process.manager.support.mvel.MvelTemplateRendering

    }

    public void install() throws Exception {
        Map<String, String> templates = Maps.filterKeys(configuration, isTemplate);
        Map<String, String> plainFiles = Maps.difference(configuration, templates).entriesOnlyOnLeft();
        Map<String, String> renderedTemplates = Maps.transformValues(templates, new MvelTemplateRendering(variables));

        applyTemplates(renderedTemplates, baseDir);
        applyPlainConfiguration(plainFiles, baseDir);
    }
View Full Code Here

Examples of io.fabric8.process.manager.support.mvel.MvelTemplateRendering

    @Override
    public void install(InstallContext installContext, ProcessConfig config, String id, File installDir) throws Exception {
        Map<String, String> templates = Maps.filterKeys(configuration, isTemplate);
        Map<String, String> plainFiles = Maps.difference(configuration, templates).entriesOnlyOnLeft();
        ProcessManagerService.substituteEnvironmentVariableExpressions((Map)variables, config.getEnvironment());
        Map<String, String> renderedTemplates = Maps.transformValues(templates, new MvelTemplateRendering(variables));
        File baseDir = ProcessUtils.findInstallDir(installDir);
        applyTemplates(installContext, renderedTemplates, baseDir);
        applyPlainConfiguration(installContext, plainFiles, baseDir);

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.