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();
}