Examples of GroovyCLI


Examples of net.sourceforge.javautil.groovy.cli.GroovyCLI

  public void main(EntryPointConfiguration config) throws Throwable {
   
    GroovyMetaClassCreationHandle.bootstrap();
    GroovyDSLContext.setGlobalManager( new GroovyDSLManagerStandard().initialize() );
   
    GroovyCLI cli = new GroovyCLI();
   
    cli.getDomain().setVariable("entry", this.entryPoint);
    cli.getDomain().setVariable("config", config);
    cli.getDomain().setVariable("epcli", this);
    cli.getSet().add(new ExecuteMainCommand("execute"));
   
    cli.initialize();
    cli.run();
   
  }
View Full Code Here

Examples of net.sourceforge.javautil.groovy.cli.GroovyCLI

   
    GroovyMetaClassCreationHandle.bootstrap();
    CoersionContext.detectCoersions();
    GroovyDSLContext.setGlobalManager(new GroovyDSLManagerStandard().initialize());
   
    GroovyCLI cli = new GroovyCLI();
   
    WebClient client = new WebClient();
   
    client.setThrowExceptionOnFailingStatusCode(false);
    client.setThrowExceptionOnScriptError(false);
   
    cli.getDomain().setVariable("server", server);
    cli.getDomain().setVariable("host", host);
    cli.getDomain().setVariable("client", client);
   
    cli.getImports().add(VirtualArtifact.class.getPackage().getName());
    cli.getImports().add(SystemDirectory.class.getPackage().getName());
    cli.getImports().add(WebApplicationStandard.class.getPackage().getName());
   
    cli.getSet().add(new GroovyRunCommand(cli.getCompiler(), "run"));
   
    cli.initialize();
    cli.run();
   
  }
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.