Package net.sourceforge.javautil.groovy.cli

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


   
    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

Related Classes of net.sourceforge.javautil.groovy.cli.GroovyCLI

Copyright © 2018 www.massapicom. 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.