Examples of IO


Examples of org.codehaus.groovy.tools.shell.IO

                        log.debug("Problem filling Groovy Shell bindings; this is non-terminal: ", t);
                    }
                }
            }
        }
        IO io = new IO(new BackspaceWrappingInputStream(session.getKeyboard()), session.getConsole(), session.getConsole());
        final Groovysh groovy = new Groovysh(binding, io);

        session.getConsole().println(getMessage());
        // This makes the Groovy shell lavender. Not sure I'm a huge fan of that, but I like it being a different color.
        // Perhaps a light gray?
View Full Code Here

Examples of org.codehaus.groovy.tools.shell.IO

    private void log(final String level, Object msg, Throwable cause) {
        assert level != null;
        assert msg != null;
       
        if (io == null) {
            io = new IO();
        }

        // Allow the msg to be a Throwable, and handle it properly if no cause is given
        if (cause == null) {
            if (msg instanceof Throwable) {
View Full Code Here

Examples of org.codehaus.groovy.tools.shell.IO

       
       

        List<String> scriptArgs = nonOptions.size() > 1 ?
                nonOptions.subList(1, nonOptions.size()) : Collections.<String>emptyList();
        IO io = new IO();

        if(options.has(quiet)){
            io.setVerbosity(IO.Verbosity.QUIET);
        }

        GroovyConsole console =
                new GroovyConsole(ConsoleSession.create(fixture.getStore()), new IO(), fixture);

        int code = 0;
        if(!scriptArgs.isEmpty()){
            code = console.execute(scriptArgs);
        }
View Full Code Here

Examples of org.codehaus.groovy.tools.shell.IO

    private void log(final String level, Object msg, Throwable cause) throws Exception {
        assert level != null;
        assert msg != null;
       
        if (io == null) {
            io = new IO();
        }

        // Allow the msg to be a Throwable, and handle it properly if no cause is given
        if (cause == null) {
            if (msg instanceof Throwable) {
View Full Code Here

Examples of org.codehaus.groovy.tools.shell.IO

        // is using it...not sure if anything is.  if not, it can go.
        this(null);
    }

    public Console(final String initScriptFile) {
        this(new IO(System.in, System.out, System.err), STANDARD_INPUT_PROMPT, STANDARD_RESULT_PROMPT, initScriptFile);
    }
View Full Code Here

Examples of org.sgx.yuigwt.yui.io.IO

    @Override
    public void call(IOEvent e) {
      console1.log("FAILURE. Status: "+e.data().status()+" - "+e.data().statusText(), "", "");
    }
  }).cast();
  IO io1 = Y.newIO(ioConfig);
 
  //send a request.
  Response resp = io1.send(uri1, ioConfig)
 
  //send an other - should trigger "failure" event
  io1.send(nonExistentUri, ioConfig)
 
 
  //and now some test with io-queue - see http://yuilibrary.com/yui/docs/io/#queue
 
  // Stop the queue so transactions can be stored.
View Full Code Here

Examples of org.sgx.yuigwt.yui.io.IO

    @Override
    public void call(IOEvent e) {
      Window.alert("FAILURE. Status: "+e.data().status()+" - "+e.data().statusText());
    }
  }).cast();
  IO io1 = Y.newIO(ioConfig);
  Response resp = io1.send(uri1, ioConfig);
}
View Full Code Here

Examples of org.sonatype.gshell.command.IO

{
    @Override
    protected Object execute(final CommandContext context, final NexusClient client) throws Exception {
        assert context != null;
        assert client != null;
        IO io = context.getIo();

        io.println("Requesting restart..."); // TODO: i18n

        client.ext(AdminClient.class).restart();

        StatusResource status = client.ext(BasicClient.class).status();
        io.println("State: {}", status.getState()); // TODO: i18n
       
        return Result.SUCCESS;
    }
View Full Code Here

Examples of org.sonatype.gshell.command.IO

{
    @Override
    protected Object execute(final CommandContext context, final NexusClient client) throws Exception {
        assert context != null;
        assert client != null;
        IO io = context.getIo();

        io.println("Requesting stop..."); // TODO: i18n

        client.ext(AdminClient.class).stop();

        StatusResource status = client.ext(BasicClient.class).status();
        io.println("State: {}", status.getState()); // TODO: i18n

        return Result.SUCCESS;
    }
View Full Code Here

Examples of org.sonatype.gshell.command.IO

{
    @Override
    protected Object execute(final CommandContext context, final NexusClient client) throws Exception {
        assert context != null;
        assert client != null;
        IO io = context.getIo();

        io.println("Requesting kill..."); // TODO: i18n

        client.ext(AdminClient.class).kill();

        io.println("Killed"); // TODO: i18n

        return Result.SUCCESS;
    }
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.