Package bear.plugins.groovy

Examples of bear.plugins.groovy.GroovyShellPlugin.cmdAnnotation()


    public GroovyScriptSupplier(GlobalContext global, String groovyScript, Optional<String> scriptName) {
        GroovyShellPlugin groovy = global.plugin(GroovyShellPlugin.class);

        this.parseResult = new BearParserScriptSupplier.BearScriptParseResult(
            Lists.newArrayList(
                new ScriptItem(scriptName, groovy.cmdAnnotation(), Variables.LINE_SPLITTER.splitToList(groovyScript), 1)
            ),
            Collections.<BearParserScriptSupplier.ScriptError>emptyList());

    }
View Full Code Here


        try {
            GroovyShellPlugin groovy = global.plugin(GroovyShellPlugin.class);

            this.parseResult = new BearParserScriptSupplier.BearScriptParseResult(
                Lists.newArrayList(
                    new ScriptItem(Optional.of(file.getName()), groovy.cmdAnnotation(), Variables.LINE_SPLITTER.splitToList(FileUtils.readFileToString(file)), 1)
                ),
                Collections.<BearParserScriptSupplier.ScriptError>emptyList());
        } catch (IOException e) {
            throw Exceptions.runtime(e);
        }
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.